C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
chapter7::permutation_iterator< CurIdxIter, SeqBegin > Struct Template Reference

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
 

Detailed Description

template<typename CurIdxIter, typename SeqBegin>
struct chapter7::permutation_iterator< CurIdxIter, SeqBegin >

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.

Template Parameters
CurIdxIterThe iterator into the index list.
SeqBeginThe beginning iterator for the original sequence for access.

Definition at line 40 of file chapter-7-permutation_view.hpp.

Member Typedef Documentation

◆ category

template<typename CurIdxIter , typename SeqBegin >
typedef boost::mpl::iterator_category<CurIdxIter>::type chapter7::permutation_iterator< CurIdxIter, SeqBegin >::category

Definition at line 45 of file chapter-7-permutation_view.hpp.

◆ current_index_iter

template<typename CurIdxIter , typename SeqBegin >
typedef CurIdxIter chapter7::permutation_iterator< CurIdxIter, SeqBegin >::current_index_iter

Definition at line 42 of file chapter-7-permutation_view.hpp.

◆ sequence_begin

template<typename CurIdxIter , typename SeqBegin >
typedef SeqBegin chapter7::permutation_iterator< CurIdxIter, SeqBegin >::sequence_begin

Definition at line 43 of file chapter-7-permutation_view.hpp.

◆ type

template<typename CurIdxIter , typename SeqBegin >
typedef permutation_iterator<CurIdxIter, SeqBegin> chapter7::permutation_iterator< CurIdxIter, SeqBegin >::type

Definition at line 46 of file chapter-7-permutation_view.hpp.


The documentation for this struct was generated from the following file: