Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::iterator_traits< Iter > Class Template Reference

provides a uniform interface to the properties of an iterator More...

Inheritance diagram for std::iterator_traits< Iter >:
Inheritance graph

Detailed Description

template<class Iter>
class std::iterator_traits< Iter >

provides a uniform interface to the properties of an iterator

Template Parameters
Iteriterator 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
Note
This class is SFINAE-friendly: if a type does not define all the member types listed above, then iterator_traits is empty for that type.

The documentation for this class was generated from the following file: