C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Alter the order sequence traversal using a sequence of positions. More...
#include <chapter-7-permutation_view.hpp>
Public Types | |
typedef Indices | indices |
typedef Sequence | orig_sequence |
typedef permutation_view_tag | tag |
Alter the order sequence traversal using a sequence of positions.
...yields a sequence, [33,22,44,11,33]
.
Indices | A sequence of indices into the "data" sequence. The iterator traverses this sequence and presents elements from the other sequence. The same index may be specified twice. An index outside the bounds of Sequence results in undefined behavior. |
Sequence | The data sequence to present when iterators are dereferenced. |
Definition at line 73 of file chapter-7-permutation_view.hpp.
typedef Indices chapter7::permutation_view< Indices, Sequence >::indices |
Definition at line 75 of file chapter-7-permutation_view.hpp.
typedef Sequence chapter7::permutation_view< Indices, Sequence >::orig_sequence |
Definition at line 76 of file chapter-7-permutation_view.hpp.
typedef permutation_view_tag chapter7::permutation_view< Indices, Sequence >::tag |
Definition at line 78 of file chapter-7-permutation_view.hpp.