For given collection (begin -> end) and start iterator pointing to an element inside collection (begin -> ... -> start -> ... ->end), returns new collection created by shifting the old collection to start. More...
#include <cycle_iterator.hpp>
Public Member Functions | |
cycle_iterator (Iter start, Iter begin, Iter end) | |
constructing of cycle_iterator More... | |
cycle_iterator () | |
Points to end of the collection. | |
Friends | |
class | boost::iterator_core_access |
For given collection (begin -> end) and start iterator pointing to an element inside collection (begin -> ... -> start -> ... ->end), returns new collection created by shifting the old collection to start.
example: WE are given collection of 5 elemeents and start points to the third
one: 1 -> 2 -> 3 (start) -> 4 -> 5 -> end
The collection ( cycle_iterator(start, begin, end), cycle_iterator() ) describes collection 3 -> 4 -> 5 -> 1 -> 2 -> end
Iter | type of iterator |
Definition at line 48 of file cycle_iterator.hpp.
|
inline |
constructing of cycle_iterator
start | new start |
begin | old start |
end | old end |
Definition at line 66 of file cycle_iterator.hpp.