operator- (std::move_iterator<Iter>, std::move_sentinel)
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
>
friend
constexpr
std::
iter_difference_t
<
Iter
>
|
(1) | (since C++20) |
template
<
std::
sized_sentinel_for
<
Iter
>
S
>
friend
constexpr
std::
iter_difference_t
<
Iter
>
|
(2) | (since C++20) |
Returns the distance between a
move_iterator
and a
move_sentinel
.
These function templates are not visible to ordinary unqualified or qualified lookup , and can only be found by argument-dependent lookup when std:: move_iterator < Iter > is an associated class of the arguments.
Parameters
i | - | std:: move_iterator < Iter > |
s | - |
std::
move_sentinel
<
S
>
, where
S
models
std::
sized_sentinel_for
<
Iter
>
|
Return value
Example
This section is incomplete
Reason: no example |
See also
(C++11)
|
computes the distance between two iterator adaptors
(function template) |