共用方式為


checked_iterator::difference_type

A type that provides the difference between two checked_iterators referring to elements within the same container.

typedef typename iterator_traits<_Iter>::difference_type difference_type;

Remarks

The checked_iterator difference type is the same as the iterator difference type.

For more information, see Checked Iterators.

Example

See checked_iterator::operator[] for an example of how to declare and use difference_type.

Requirements

Header: <iterator>

Namespace: std

See Also

Concepts

checked_iterator Class

checked_iterator Members

Standard Template Library