std::move_sentinel<S>:: move_sentinel
From cppreference.net
<
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) | (depuis C++20) |
|
constexpr
explicit
move_sentinel
(
S x
)
;
|
(2) | (depuis C++20) |
|
template
<
class
S2
>
requires
std::
convertible_to
<
const
S2
&
, S
>
|
(3) | (depuis C++20) |
Construit un nouvel adaptateur sentinelle.
1)
Constructeur par défaut. Le sentinelle sous-jacent est initialisé par valeur.
2)
Le sentinelle sous-jacent est initialisé avec
x
.
3)
Le sentinelle sous-jacent est initialisé avec celui de
other
.
Paramètres
| x | - | sentinelle à adapter |
| other | - | adaptateur de sentinelle à copier |
Exemple
|
Cette section est incomplète
Raison : aucun exemple |
Voir aussi
construit un nouveau
move_iterator
(fonction membre publique de
std::move_iterator<Iter>
)
|