std:: move_sentinel
From cppreference.com
C++
Iterator library
Iterator concepts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Iterator primitives | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Algorithm concepts and utilities | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Indirect callable concepts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Common algorithm requirements | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Utilities | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Iterator adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
std::move_sentinel
Defined in header
<iterator>
|
||
template
<
std::
semiregular
S
>
class move_sentinel ; |
(since C++20) | |
std::move_sentinel
is a sentinel adaptor used for denoting ranges together with
std::move_iterator
.
Template parameters
S | - | the type of underlying sentinel |
Member functions
constructs a new
move_sentinel
(public member function) |
|
assigns the contents of one
move_sentinel
to another
(public member function) |
|
return a copy of the underlying sentinel
(public member function) |
Member objects
Member name | Definition |
last
(private)
|
underlying sentinel
( exposition-only member object* ) |
Non-member functions
(C++20)
|
compares the underlying iterator and the underlying sentinel
(function template) |
(C++20)
|
computes the distance between the underlying iterator and the underlying sentinel
(function template) |
Example
This section is incomplete
Reason: no example |
See also
(C++11)
|
iterator adaptor which dereferences to an rvalue
(class template) |
Retrieved from "
https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/move_sentinel&oldid=172568
"