Namespaces
Variants
Actions

std::move_sentinel<S>::move_sentinel

From cppreference.com
 
C++
 
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)
 
std::move_sentinel
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>

        constexpr move_sentinel( const std::move_sentinel<S2>& other );
(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.

[edit] Parameters

x - sentinel to adapt
other - sentinel adaptor to copy

[edit] Example

[edit] See also

constructs a new move_iterator
(public member function of std::move_iterator<Iter>) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant