|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Create permutation_iterator.
Create permutation_iterator.
7-4. Design and implement an iterator adaptor that adapts any Random Access
Iterator by presenting the elements it traverses in an order determined
by a sequence of nonnegative integer indices. Make your
permutation_iterator a forward iterator.