std::move_s...ove_sentinel(3)
π NAME π
okay so welcome to the std::move_s...ove_sentinel(3) page from the C++ Standard Libary manual β yes bestie, thatβs the manual name and weβre keeping it exactly. This page is all about std::move_sentinel::move_sentinel, the constructor crew. periodt. π
β¨ Synopsis β¨
Constructs a new sentinel adaptor. Here are the three constructor flavors, all with their exact since C++20 energy:
(1) (since C++20)
constexpr move_sentinel();
- Default constructor. The underlying sentinel is value-initialized.
(2) (since C++20)
constexpr explicit move_sentinel( S x );
- The underlying sentinel is initialized with
x.
(3) (since C++20)
template< class S2 >
requires std::convertible_to<const S2&, S>
constexpr move_sentinel( const std::move_sentinel<S2>&
other );
- The underlying sentinel is initialized with that of
other.
π Parameters π
xβ sentinel to adapt. Thatβs the whole assignment, bestie.otherβ sentinel adaptor to copy. yes, the adaptor itself gets copied.
π§ Example π§
This section is incomplete Reason: no example
the docs really said βno exampleβ and left us on read π no cap.
π See also π
constructorβ constructs a new iterator adaptor(C++11)(public member function ofstd::move_iterator<Iter>)
π Category π
- Todo no example
mwah π this pageβs source/version lives at http://cppreference.com, the date is 2024.06.10, and the page title is std::move_s...ove_sentinel(3) β thatβs the whole footer vibe, bestie π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms