- Test:
- verify adapter to iterate and navigate over array-like content, that can be accessed through subscript operator and
size()
function.
- See also
- iter-cursor.hpp
-
iter-adapter.hpp
-
usage example
Definition at line 80 of file index-iter-test.cpp.
◆ simpleIteration()
◆ verify_randomAccess()
void verify_randomAccess |
( |
| ) |
|
|
inlineprivate |
- Test:
- verify the ability of IndexIter to access and manipulate the current index position, which can be done any time, while in the middle of iteration, and even after iteration end.
That means, even an exhausted iterator can be „reanimated“. This manipulation is not allowed on a default constructed IndexIter, though.
Definition at line 128 of file index-iter-test.cpp.
◆ iterTypeVariations()
void iterTypeVariations |
( |
| ) |
|
|
inlineprivate |
- Test:
- verify possible variations of this iterator template, using a const container or maintaining shared ownership.
Definition at line 179 of file index-iter-test.cpp.
◆ verifyComparisons()
void verifyComparisons |
( |
IT const & |
ii | ) |
|
|
inlineprivate |
- Test:
- verify equality handling and NIL detection for the given iterator/wrapper handed in.
- Note
- the argument is not altered; rather we create several copies, to iterate and compare those
Definition at line 249 of file index-iter-test.cpp.
The documentation for this class was generated from the following file: