std::move_sentinel<S>:: move_sentinel
From cppreference.com
<
cpp
|
iterator
|
move sentinel
C++
Iterator library
Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
std::move_sentinel
Member functions | ||||
move_sentinel::move_sentinel
|
||||
Non-member functions | ||||
(C++20)
|
||||
(C++20)
|
constexpr
move_sentinel
(
)
;
|
(1) | (since C++20) |
constexpr
explicit
move_sentinel
(
S x
)
;
|
(2) | (since C++20) |
template
<
class
S2
>
requires
std::
convertible_to
<
const
S2
&
, S
>
|
(3) | (since C++20) |
Constructs a new sentinel adaptor.
1)
Default constructor. The underlying sentinel is value-initialized.
2)
The underlying sentinel is initialized with
x
.
3)
The underlying sentinel is initialized with that of
other
.
Parameters
x | - | sentinel to adapt |
other | - | sentinel adaptor to copy |
Example
This section is incomplete
Reason: no example |
See also
(C++11)
|
constructs a new iterator adaptor
(public member function of
std::move_iterator<Iter>
)
|
Retrieved from "
https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/move_sentinel/move_sentinel&oldid=159943
"