Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
iter-cursor.hpp File Reference

An iterator with the ability to switch direction. More...

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 "Lumiera 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>

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 
namespace  lib::iter
 

Classes

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