std::move_sentinel(3)
π std::move_sentinel π
okay so welcome to the C++ Standard Libary page for std::move_sentinel, section 3, bestie π she's a whole sentinel adaptor and she's about to make sense, no cap.
π NAME π
std::move_sentinel β std::move_sentinel.
β¨ Synopsis β¨
Defined in header <iterator>:
template< std::semiregular S > (since C++20)
class move_sentinel;
std::move_sentinel is a sentinel adaptor used for denoting ranges together with std::move_iterator.
π¦ Template parameters π¦
Sβ the type of underlying sentinel.
π Member functions π
constructorβ constructs a newmove_sentinel. (C++20) (public member function)operator=β assigns the contents of onemove_sentinelto another. (C++20) (public member function)baseβ return a copy of the underlying sentinel. (C++20) (public member function)
π Member objects π
- Member name:
last(private member object) β Definition: underlying sentinel, the name is for exposition only.
π₯ Non-member functions π₯
Note, bestie: these functions are hidden friends of std::move_iterator and invisible to ordinary unqualified or qualified lookup. iykyk.
operator==(std::move_sentinel)(C++20) β compares the underlying iterator and the underlying sentinel (function template)operator-(std::move_sentinel)(C++20) β computes the distance between the underlying iterator and the underlying sentinel (function template)
π Example π
This section is incomplete Reason: no example
πΈ See also πΈ
move_iterator(C++11) β iterator adaptor which dereferences to an rvalue (class template)
π§ Category π§
Todo no example
kisses and slay, your bestie at http://cppreference.com π page date 2024.06.10, manual tag std::move_sentinel(3), and that's the whole vibe. mwah π«Ά
π¦ 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