std::move_s...ove_sentinel(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 of std::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