![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
provides a uniform interface to the properties of an iterator More...

provides a uniform interface to the properties of an iterator
| Iter | iterator type to retrieve properties for |
std::iterator_traits is a type trait class that provides a uniform interface to the properties of Iterator types, allowing implementations of algorithms only in terms of iterators.
This template can be specialized for user-defined Iterator types so that the information about the iterator can be retrieved even if type does not provide the usual typedefs.
The member types provided by this type trait class are:
| ** nested type ** | ** definition ** |
|---|---|
difference_type | Iter::difference_type |
value_type | Iter::value_type |
pointer | Iter::pointer |
reference | Iter::reference |
iterator_category | Iter::iterator_category |
iterator_traits is empty for that type.