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

Reference

checked_iterator Class

Standard Template Library

Other Resources

checked_iterator Members