std::execution::let_error(3)
π NAME π
std::execution::let_error β yes bestie, that's the name, and this page is from the C++ Standard Libary manual (spelled exactly like that in the header, no cap π«Ά).
β¨ Synopsis β¨
Okay so it's defined in the header <execution>, and here's the signature β keep it exact, bestie:
execution::sender auto let_error(
execution::sender auto input, (since C++26)
std::invocable<errors-sent-by(input)...> function
);
π Parameters π
inputβ the sender that, once an error occurs, sends the errors tofunction.functionβ the invocable to be called with the errors if an error occurs by 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 errors sent by the input sender, if an error occurs. That's the whole vibe, periodt π
That's the page, bestie π from cppreference.com, dated 2024.06.10 β std::execution::let_error(3) and we're out πβ¨
π¦ 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