Namespaces
Variants

std::move_sentinel<S>:: move_sentinel

From cppreference.net
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(C++20)
(C++20)
(C++20)
Utilities
(C++20)
Iterator adaptors
Range access
(C++11) (C++14)
(C++14) (C++14)
(C++11) (C++14)
(C++14) (C++14)
(C++17) (C++20)
(C++17)
(C++17)
constexpr move_sentinel ( ) ;
(1) (自 C++20 起)
constexpr explicit move_sentinel ( S x ) ;
(2) (自 C++20 起)
template < class S2 >

requires std:: convertible_to < const S2 & , S >

constexpr move_sentinel ( const std:: move_sentinel < S2 > & other ) ;
(3) (自 C++20 起)

构造一个新的哨兵适配器。

1) 默认构造函数。底层哨兵值被值初始化。
2) 底层哨兵使用 x 进行初始化。
3) 底层哨兵使用 other 的哨兵进行初始化。

参数

x - 用于适配的哨兵值
other - 待复制的哨兵适配器

示例

参见

构造新的 move_iterator
( std::move_iterator<Iter> 的公开成员函数)