Lumiera  0.pre.03
»edit your freedom«
iter-cursor.hpp File Reference

Go to the source code of this file.

Description

An iterator with the ability to switch direction.

This wrapper relies on the ability of typical STL container iterators to work in both directions, similar to std::reverse_iterator. Yet it is a single, self-contained element and in compliance to the iter-adapter.hppLumiera Forward Iterator"" concept. But it has the additional ability to switch the working direction.

See also
IterCursor_test
iter-adapter.hpp
usage example

Definition in file iter-cursor.hpp.

#include "lib/error.hpp"
#include "lib/iter-adapter.hpp"
#include <type_traits>
#include <utility>

Classes

class  CursorGear< IT >
 
class  IterCursor< IT >
 A cursor-like iterator with the ability to switch iteration direction. More...
 

Namespaces

 lib
 Implementation namespace for support and library code.