Home | Libraries | People | FAQ | More |
This procedure assumes that you have control over the types that should be made conformant to a Range concept. If not, see method 2.
The primary templates in this library are implemented such that standard containers will work automatically and so will boost::array. Below is given an overview of which member functions and member types a class must specify to be useable as a certain Range concept.
Member function |
Related concept |
---|---|
|
|
|
Notice that rbegin()
and rend()
member functions are not needed even though the container can support bidirectional
iteration.
The required member types are:
Member type |
Related concept |
---|---|
|
|
|
Again one should notice that member types reverse_iterator
and const_reverse_iterator
are not needed.