|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Create a reverse view and iterator. More...
Files | |
| file | exercise-7-7.hpp |
| Solution to Exercise 7-7. | |
Namespaces | |
| namespace | exercise_7_7 |
| Encapsulate solution for Exercise 7-7. | |
Classes | |
| struct | boost::mpl::rend< Sequence > |
| Acquire a reverse_iterator at the end of a sequence. More... | |
| struct | boost::mpl::rbegin< Sequence > |
| Grab a reverse_iterator from the a sequence directly. More... | |
| struct | boost::mpl::deref< exercise_7_7::reverse_iterator< ForwardIt > > |
| Undo double-indirection of the reverse_iterator. More... | |
| struct | boost::mpl::next< exercise_7_7::reverse_iterator< ForwardIt > > |
| Turn next into prior. More... | |
| struct | boost::mpl::prior< exercise_7_7::reverse_iterator< ForwardIt > > |
| Turn prior into next. More... | |
Create a reverse view and iterator.
7-7. Design and implement a reverse iterator adaptor with semantics analogous
to those of std::reverse_iterator. Make its category the same as the
category of the underlying iterator. Use the resulting iterator to
implement a reverse_view template.