std::ranges...l::sentinel(3)
πΈ NAME πΈ
okay so bestie, welcome to std::ranges::adjacent_transform_view::sentinel::sentinel β page std::ranges...l::sentinel(3) from the C++ Standard Libary manual. The name is literally repeated on the page: std::ranges::adjacent_transform_view::sentinel::sentinel β std::ranges::adjacent_transform_view::sentinel::sentinel. and honestly? iconic. This is the constructor page for that sentinel. π
β¨ Synopsis β¨
hereβs the signature tea, copied exactly because we do not mess with code:
/*sentinel*/() = default; (1)
(since C++23)
constexpr /*sentinel*/( /*sentinel*/<!Const> i )
requires Const && (2)
(since C++23)
std::convertible_to</*inner-sentinel*/<false>,
/*inner-sentinel*/<Const>>;
private:
constexpr explicit /*sentinel*/( /*inner-sentinel*/<Const> (3)
(exposition only*)
inner );
okay so what does it do? Construct a sentinel. Thatβs the whole assignment. Letβs break it down:
- Default constructor. Default-initializes the underlying sentinel
inner_. - Conversion from
/*sentinel*/<false>to/*sentinel*/<true>. Move constructs the underlying sentinelinner_withstd::move(i.inner_). Itβs gated byrequires Const &&andstd::convertible_to</*inner-sentinel*/<false>, /*inner-sentinel*/<Const>>;from the synopsis above. - Private constructor, not for users. This sentinel also has a private constructor which is used by
ranges::adjacent_transform_view::end. This constructor is not accessible to users. Initializes the underlying sentinelinner_withinner.
π Parameters π
iβ an/*sentinel*/<false>.innerβ a sentinel of typeadjacent_transform_view::inner_sentinel.
π Example π
This section is incomplete Reason: no example
the example section is literally a todo, bestie π no example yet.
π Category π
- Todo no example
okay thatβs the page, bestie π«Ά β sourced from http://cppreference.com, dated 2024.06.10, and filed under std::ranges...l::sentinel(3). periodt π
π¦ 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