Inherited by random_access_container.
Inheritance diagram for reversible_container:
For internal use only.
Uses CRTP to flesh out a reversible container. Given the iterator and size type, and a defined begin, end and size member functions, define the rest of the members of a reversible container.
Cont | The container. Should be the subclass. | |
ConstIter | The iterator to access the elements. | |
Iter | The iterator to access or change the elements. | |
Size | The size type. |
Public Types | |
typedef forward_container< Cont, ConstIter, Iter, Size > | base |
The base type. | |
typedef std::reverse_iterator< ConstIter > | const_reverse_iterator |
An iterator to access the elements in reverse order. | |
typedef std::reverse_iterator< Iter > | reverse_iterator |
An iterator to access or change the elements in reverse order. | |
Public Member Functions | |
base::reference | back () |
Gets the last element. | |
base::const_reference | back () const |
Gets the last element. | |
reverse_iterator | rbegin () |
Gets a reverse iterator to the before-the-first element. | |
const_reverse_iterator | rbegin () const |
Gets a constant reverse iterator to the last element. | |
reverse_iterator | rend () |
Gets a reverse iterator to the before-the-first element. | |
const_reverse_iterator | rend () const |
Gets a constant reverse iterator to the last element. |