![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Computes the difference type of an incrementable iterator type. More...

Computes the difference type of an incrementable iterator type.
| Itr | The incrementable iterator type for which to compute the difference type. |
The member typedef difference_type will be present and defined if either of the following are true, in order of preference:
incrementable_traits is provided for Itr that defines a member typedef difference_type.Itr has a member typedef difference_type.std::declval<Itr>()-std::declval<Itr>() is well-formed and has an integral type.Otherwise, the member typedef difference_type will not be present.