| Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Non-member functions | ||||
(until C++20)(C++20) | ||||
(C++20) | ||||
operator-(move_sentinel) (C++20) | ||||
(C++20) | ||||
(C++20) | ||||
(C++11) |
template<std::sized_sentinel_for<Iter> S> friendconstexprstd::iter_difference_t<Iter> | (1) | (since C++20) |
template<std::sized_sentinel_for<Iter> S> friendconstexprstd::iter_difference_t<Iter> | (2) | (since C++20) |
Returns the distance between amove_iterator and amove_sentinel.
These function templates are not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup whenstd::move_iterator<Iter> is an associated class of the arguments.
Contents |
| i | - | std::move_iterator<Iter> |
| s | - | std::move_sentinel<S>, whereS modelsstd::sized_sentinel_for<Iter> |
| This section is incomplete Reason: no example |
(C++11) | computes the distance between two iterator adaptors (function template)[edit] |