std::execution::read(3)
π NAME π
std::execution::read - std::execution::read β okay bestie, this is the whole manpage vibe for std::execution::read from the C++ Standard Libary manual (manual name folded in near the top, as promised π«Ά). Itβs giving βreach into a receiverβs environmentβ energy, and weβre obsessed β¨.
π Synopsis π
Synopsis time, no cap:
Defined in header <execution>
execution::sender auto read( auto tag ); (since C++26)
πΈ Parameters πΈ
tagβ by which the customization point is recognized. Thatβs literally its whole job, iykyk π.
π₯ Return value π₯
Returns a sender π« β it reaches into a receiverβs environment and pulls out the current value associated with the customization point denoted by Tag. Capital-T Tag, keeping it iconic π.
β¨ Example β¨
Possible usage of tags in read function, to retrieve the value associated with the customization point β hereβs the whole flex, fr fr π
:
execution::sender auto get_scheduler()
{
return read(execution::get_scheduler);
}
execution::sender auto get_delegatee_scheduler()
{
return read(execution::get_delegatee_scheduler);
}
execution::sender auto get_allocator()
{
return read(execution::get_allocator);
}
execution::sender auto get_stop_token()
{
return read(execution::get_stop_token);
}
okay thatβs the whole page, bestie π«Ά β cute little sign-off time: source is http://cppreference.com, version/date is 2024.06.10, and this iconic manual page is std::execution::read(3). mwah ππ
π¦ 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