Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
arene::base::incrementable_traits< Itr > Class Template Reference

Computes the difference type of an incrementable iterator type. More...

Inheritance diagram for arene::base::incrementable_traits< Itr >:
Inheritance graph

Detailed Description

template<typename Itr>
class arene::base::incrementable_traits< Itr >

Computes the difference type of an incrementable iterator type.

Template Parameters
ItrThe 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:

  1. A specialization of incrementable_traits is provided for Itr that defines a member typedef difference_type.
  2. Itr has a member typedef difference_type.
  3. The expression std::declval<Itr>()-std::declval<Itr>() is well-formed and has an integral type.

Otherwise, the member typedef difference_type will not be present.


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