std::execut..._as_optional(3)
πΈ NAME πΈ
okay so bestie, you're on the std::execut..._as_optional(3) page from the C++ Standard Library, and the star of the show is std::execution::stopped_as_optional β and yes, the name is literally std::execution::stopped_as_optional. say it with your chest π
β¨ Synopsis β¨
Defined in header <execution>, and it's giving:
execution::sender auto stopped_as_optional(
single-sender auto snd (since C++26)
);
and that (since C++26) is right there in the signature, bestie β not me making things up. π«Ά
π Parameters π
sndβ the input sender, and her value channel plus stopped channel are the ones being mapped. that's the whole assignment. β¨
π Return value π
Returns a sender β and the way that sender behaves is the moment: it maps the value channel from a T to an std::optional<std::decay_t<T>>, and maps the stopped channel to a value of an empty std::optional<std::decay_t<T>>. no notes. π
source/version: http://cppreference.com Β· date: 2024.06.10 β mwah, stay hydrated, bestie π«Άπ
π¦ 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