proxygen
folly::test::TestBothIndexingAndIter::Iterator Class Reference

Public Types

using difference_type = std::size_t
 
using value_type = int
 
using pointer = int *
 
using reference = int &
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

int & operator* ()
 
Iterator operator+ (int)
 
 Iterator (int &val_in)
 

Public Attributes

int & val
 

Detailed Description

Definition at line 71 of file ForeachTest.cpp.

Member Typedef Documentation

Definition at line 77 of file ForeachTest.cpp.

Constructor & Destructor Documentation

folly::test::TestBothIndexingAndIter::Iterator::Iterator ( int &  val_in)
inlineexplicit

Definition at line 84 of file ForeachTest.cpp.

Member Function Documentation

int& folly::test::TestBothIndexingAndIter::Iterator::operator* ( )
inline

Definition at line 78 of file ForeachTest.cpp.

References val.

78  {
79  return this->val;
80  }
Iterator folly::test::TestBothIndexingAndIter::Iterator::operator+ ( int  )
inline

Definition at line 81 of file ForeachTest.cpp.

81  {
82  return *this;
83  }

Member Data Documentation

int& folly::test::TestBothIndexingAndIter::Iterator::val

Definition at line 85 of file ForeachTest.cpp.


The documentation for this class was generated from the following file: