C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
chapter-7-permutation_view.hpp File Reference

Defines a view of a sequence that appears to alter the elements' order. More...

#include <boost/mpl/advance.hpp>
#include <boost/mpl/begin_end.hpp>
#include <boost/mpl/deref.hpp>
#include <boost/mpl/iterator_tags.hpp>
#include <boost/mpl/iterator_category.hpp>
#include <boost/mpl/next_prior.hpp>

Go to the source code of this file.

Classes

struct  chapter7::permutation_iterator< CurIdxIter, SeqBegin >
 Iterates across a seqence in an order defined by another sequence. More...
 
struct  chapter7::permutation_view_tag
 Type for tag-based implementation of algorithms below. More...
 
struct  chapter7::permutation_view< Indices, Sequence >
 Alter the order sequence traversal using a sequence of positions. More...
 
struct  boost::mpl::begin_impl< chapter7::permutation_view_tag >
 Load an iterator with the beginning to both sequences. More...
 
struct  boost::mpl::begin_impl< chapter7::permutation_view_tag >::apply
 
struct  boost::mpl::begin_impl< chapter7::permutation_view_tag >::apply< chapter7::permutation_view< Indices, Sequence > >
 
struct  boost::mpl::end_impl< chapter7::permutation_view_tag >
 An iterator with the end of the indices sequence and the beginning of the other. More...
 
struct  boost::mpl::end_impl< chapter7::permutation_view_tag >::apply
 
struct  boost::mpl::deref< chapter7::permutation_iterator< CurIdxIter, SeqBegin > >
 Advance the prescribed amount, and return the element found. More...
 
struct  boost::mpl::next< chapter7::permutation_iterator< CurIdxIter, SeqBegin > >
 Advance only the index iterator. More...
 
struct  boost::mpl::prior< chapter7::permutation_iterator< CurIdxIter, SeqBegin > >
 Move only the index iterator. More...
 

Namespaces

namespace  chapter7
 Provide utilities availble to all Chapter 7 solutions.
 
namespace  boost
 Exists to inject functionality into the Boost namespace.
 
namespace  boost::mpl
 Exists to inject functionality into the Boost MPL namespace.
 

Detailed Description

Defines a view of a sequence that appears to alter the elements' order.

Author
Matt Bisson

Definition in file chapter-7-permutation_view.hpp.