std::ranges...el::sentinel(3)
π NAME π
Bestie, welcome to the std::ranges::join_with_view::sentinel::sentinel page from the C++ Standard Libary manual, section (3) π
β¨. Yes, weβre talking about the sentinel constructor, and itβs giving niche but iconic energy.
β¨ Synopsis β¨
/*sentinel*/() = default;
(1) (since C++23)
constexpr /*sentinel*/( /*sentinel*/<!Const> i )
requires Const &&
(2) (since C++23)
std::convertible_to<ranges::sentinel_t<V>,
ranges::sentinel_t<const V>>;
Okay so this thing constructs a sentinel π«Ά. Hereβs the breakdown:
/*sentinel*/() = default;β (1) (since C++23) β Default constructor. Value-initializes the underlying sentinel. Slay.constexpr /*sentinel*/( /*sentinel*/<!Const> i )β (2) (since C++23) β Conversion from/*sentinel*/<false>to/*sentinel*/<true>. Move constructs the underlying sentinel with the corresponding member ofi. Therequiresclause isConst && std::convertible_to<ranges::sentinel_t<V>, ranges::sentinel_t<const V>>;β yes, thatβs the whole vibe check π.
Also lowkey: this type has a private constructor used by join_with_view::end. This constructor is not accessible to users π, so no touching, bestie.
πΈ Parameters πΈ
iβ a/*sentinel*/<false>π
π¦ Example π¦
This section is incomplete Reason: no example π
π Category π
Category:
- Todo no example
Made with love from the C++ Standard Libary manual, source/version http://cppreference.com, dated 2024.06.10 π«Άπ byeeee!
π¦ 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