STD::MOVE_SENTINEL(3cxx)
β¨ NAME β¨
std::move_sentinel< _Sent > β bestie, it's a sentinel adaptor for use with std::move_iterator. π
π SYNOPSIS π
#include <iterator>
π Public Member Functions
constexpr move_sentinel(_Sent __s)β lowkey just builds one straight from a_Sent. It'snoexcept(is_nothrow_move_constructible_v< _Sent >)because ofc it is, we love a conditional noexcept. β¨template<typename _S2> requires convertible_to<const _S2&, _Sent> constexpr move_sentinel(const move_sentinel< _S2 >& __s)β the copy-ish converter, turning amove_sentinel< _S2 >into amove_sentinel< _Sent >. Only exists whenconst _S2&isconvertible_to_Sent, and it'snoexcept(is_nothrow_constructible_v< _Sent, const _S2& >). fr fr. π¦constexpr _Sent base() const noexcept(is_nothrow_copy_constructible_v< _Sent >)β hands you back the underlying_Sent, no cap. Guarded bynoexcept(is_nothrow_copy_constructible_v< _Sent >). πtemplate<typename _S2> requires assignable_from<_Sent&, const _S2&> constexpr move_sentinel& operator=(const move_sentinel< _S2 >& __s)β the assignment glow-up, works when_Sent&isassignable_fromconst _S2&. Its noexcept isis_nothrow_assignable_v< _Sent, const _S2& >. periodt. π«Ά
π Detailed Description π
template<semiregular _Sent>
class std::move_sentinel< _Sent >
A sentinel adaptor for use with std::move_iterator. That's it, that's the whole vibe β it's giving "I exist so your move iterators have a matching sentinel to vibe-check against." πΈ Not me being obsessed with a tiny adaptor class. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. The robots wrote this one, bestie β I'm just the messenger. π€β¨
Okayyy that's the whole page! This one's from libstdc++, covering std::move_sentinel< _Sent > in section 3cxx β mwah, go forth and move-iterate responsibly. πππ¦
π¦ where this page comes from
- ubuntu resolute: libstdc++-15-doc 15.2.0-16ubuntu1
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- ubuntu stonking: libstdc++-15-doc 15.3.0-4ubuntu1
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms