proxygen
folly::test::TestBothIndexingAndIter Class Reference

Classes

class  Iterator
 

Public Member Functions

auto begin ()
 
auto end ()
 
int & operator[] (int)
 

Public Attributes

int val {0}
 
bool called_begin = false
 

Detailed Description

Definition at line 69 of file ForeachTest.cpp.

Member Function Documentation

auto folly::test::TestBothIndexingAndIter::begin ( )
inline

Definition at line 87 of file ForeachTest.cpp.

References val.

87  {
88  this->called_begin = true;
89  return Iterator{val};
90  }
auto folly::test::TestBothIndexingAndIter::end ( )
inline

Definition at line 91 of file ForeachTest.cpp.

References val.

91  {
92  return Iterator{val};
93  }
int& folly::test::TestBothIndexingAndIter::operator[] ( int  )
inline

Definition at line 94 of file ForeachTest.cpp.

References val.

94  {
95  return this->val;
96  }

Member Data Documentation

bool folly::test::TestBothIndexingAndIter::called_begin = false

Definition at line 99 of file ForeachTest.cpp.

int folly::test::TestBothIndexingAndIter::val {0}

Definition at line 98 of file ForeachTest.cpp.


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