C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Iterates across a seqence in an order defined by another sequence. More...
#include <chapter-7-permutation_view.hpp>
Public Types | |
typedef CurIdxIter | current_index_iter |
typedef SeqBegin | sequence_begin |
typedef boost::mpl::iterator_category< CurIdxIter >::type | category |
typedef permutation_iterator< CurIdxIter, SeqBegin > | type |
Iterates across a seqence in an order defined by another sequence.
This is an iterator adaptor that adapts any Random Access Iterator by presenting the elements it traverses in an order determined by a sequence of non-negative integer indices.
Its traversal category is determined by the category of the sequence of indices.
CurIdxIter | The iterator into the index list. |
SeqBegin | The beginning iterator for the original sequence for access. |
Definition at line 40 of file chapter-7-permutation_view.hpp.
typedef boost::mpl::iterator_category<CurIdxIter>::type chapter7::permutation_iterator< CurIdxIter, SeqBegin >::category |
Definition at line 45 of file chapter-7-permutation_view.hpp.
typedef CurIdxIter chapter7::permutation_iterator< CurIdxIter, SeqBegin >::current_index_iter |
Definition at line 42 of file chapter-7-permutation_view.hpp.
typedef SeqBegin chapter7::permutation_iterator< CurIdxIter, SeqBegin >::sequence_begin |
Definition at line 43 of file chapter-7-permutation_view.hpp.
typedef permutation_iterator<CurIdxIter, SeqBegin> chapter7::permutation_iterator< CurIdxIter, SeqBegin >::type |
Definition at line 46 of file chapter-7-permutation_view.hpp.