Inheritance diagram for random_access_container:
For internal use only.
Uses CRTP to flesh out a random access container. Given the iterator and size type, and a defined begin, end and size member functions, define the rest of the members of a random access 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. | |
Public Member Functions | |
base::reference | operator[] (typename base::size_type i) |
Gets the element at index i. | |
base::const_reference | operator[] (typename base::size_type i) const |
Gets the element at index i. |