std::execution::let_value(3)
πΈ NAME πΈ
Hiii bestie!! π This is std::execution::let_value(3), folded in from the C++ Standard Libary manual (yes, thatβs the manual name β spelling and all, no cap).
std::execution::let_value - std::execution::let_value β yep, the name is the name, iconic. π
β¨ Synopsis β¨
Okay so hereβs the signature in all its glory, bestie:
Defined in header <execution>
execution::sender auto let_value(
execution::sender auto input, (since C++26)
std::invocable<values-sent-by(input)...> function
);
π Parameters π
inputβ a sender which once executed sends the values upon which thefunctionexecutes. πfunctionβ an invocable to be called with the values from theinputsender. π«Ά
π Return value π
Returns a sender describing the task graph described by the input sender, with an added node of invoking the provided function with the values sent by the input sender as arguments. π
let_value is similar to then, however, where the sender returned from then sends exactly what that function ends up returning β let_value requires that the function returns a sender, and the sender returned by let_value sends the values sent by the sender returned from the callback. Periodt. π
π₯
Bye bestie!! π¦ Source/version/date sign-off: http://cppreference.com Β· 2024.06.10 Β· std::execution::let_value(3) πβ¨
π¦ 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