A combinator of two iterators that can be used to apply permutations on a second container when sorting the first. More...
#include <iterator_pair.h>
Public Types | |
| using | ReferenceType = iterator_pair_types< sort_iter_type_, perm_iter_type_ >::ref_type |
| using | DifferenceType = iterator_pair_types< sort_iter_type_, perm_iter_type_ >::difference_type |
Public Member Functions | |
| IteratorPair ()=default | |
| IteratorPair (sort_iter_type_, perm_iter_type_) | |
| ReferenceType | operator[] (DifferenceType n) const |
Private Member Functions | |
| void | increment () |
| Advance by one position. | |
| void | decrement () |
| Retreat by one position. | |
| bool | equal (IteratorPair const &) const |
| Compare for equality. | |
| void | advance (typename iterator_pair_types< sort_iter_type_, perm_iter_type_ >::difference_type) |
| Advance by a number of positions. | |
| iterator_pair_types< sort_iter_type_, perm_iter_type_ >::ref_type | dereference () const |
| Access the value referred to. | |
| iterator_pair_types< sort_iter_type_, perm_iter_type_ >::difference_type | distance_to (IteratorPair const &) const |
| Measure the distance to another iterator. | |
Private Attributes | |
| sort_iter_type_ | sort_iter_ |
| Iterator of the container being sorted. | |
| perm_iter_type_ | perm_iter_ |
| Iterator of the container being permuted. | |
Friends | |
| class | boost::iterator_core_access |
A combinator of two iterators that can be used to apply permutations on a second container when sorting the first.
| sort_iter_type_ | Iterator type of the container being sorted. |
| perm_iter_type_ | Iterator type of the container being permuted. |
| using IteratorPair< sort_iter_type_, perm_iter_type_ >::DifferenceType = iterator_pair_types< sort_iter_type_, perm_iter_type_ >::difference_type |
| using IteratorPair< sort_iter_type_, perm_iter_type_ >::ReferenceType = iterator_pair_types< sort_iter_type_, perm_iter_type_ >::ref_type |
|
default |
|
inline |
|
inlineprivate |
Advance by a number of positions.
|
inlineprivate |
Retreat by one position.
|
inlineprivate |
Access the value referred to.
|
inlineprivate |
Measure the distance to another iterator.
|
inlineprivate |
Compare for equality.
|
inlineprivate |
Advance by one position.
|
inline |
|
friend |
|
private |
Iterator of the container being permuted.
|
private |
Iterator of the container being sorted.