pabigot
0.1.1
C++ support classes
|
Iterator type designed to support range-for. More...
#include </mnt/devel/pabigot-cxx/include/pabigot/container.hpp>
Public Member Functions | |
bool | operator== (const end_iterator_type &) |
Return true iff this iterator is past the end of its chain. | |
bool | operator!= (const end_iterator_type &rhs) |
Minimum operator required for range-for support. More... | |
chain_iterator_type & | operator++ () |
Increment to reference the cached successor of the current. | |
value_type & | operator* () noexcept |
Get a reference to the value in the chain. More... | |
Iterator type designed to support range-for.
An iterator can be dereferenced to produce a reference to a value within the chain. The reference is not const
-qualified.
An iterator can be pre-incremented, which will update it so that when dereferenced it will reference the value that was the successor of the value referenced by the iterator at the time the iterator was last updated.
I.e., if you have an iterator that references e
, and f
follows e
in the chain, then removing e
from the chain and incrementing the iterator will reference f
.
|
inline |
Minimum operator required for range-for support.
Returns false
iff this iterator is past the end of its chain.
|
inlinenoexcept |
Get a reference to the value in the chain.
iter != end()
is false will dereference a null pointer.