std::execution::just_error(3)
π std::execution::just_error(3) π
okay so bestie, welcome to the C++ Standard Libary manual page for std::execution::just_error β¨ (thatβs the spelling from the header, not me being chaotic π
). This one is a tiny little sender-maker and itβs honestly giving βshort but importantβ energy.
πΈ NAME πΈ
std::execution::just_error β std::execution::just_error
like, thatβs the name and the description, periodt π
π¦ Synopsis π¦
Defined in header <execution>
execution::sender auto just_error( auto && error ); (since C++26)
slay, itβs a C++26 era function β¨
π Parameters π
errorβ the input error which will be injected and returned by the receiver.
π₯ Return value π₯
Returns a sender with no completion schedulers, which sends the provided values. Thatβs the whole vibe: no schedulers, just sending the provided values π«
π Notes π
Important little details, bestie, pay attention:
- If the provided error is an lvalue reference, a copy is made inside the returned sender and a non-const lvalue reference to the copy is sent to the receiverβs
set_error. - If the provided value is an rvalue reference, it is moved into the returned sender and an rvalue reference to it is sent to the receiverβs
set_error.
okay bye bestie π«Ά source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::execution::just_error(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