1.8 KiB
1.8 KiB
[exec.simple.counting.token]
33 Execution control library [exec]
33.14 Execution scope utilities [exec.scope]
33.14.2 Counting Scopes [exec.counting.scopes]
33.14.2.2 Simple Counting Scope [exec.scope.simple.counting]
33.14.2.2.4 Token [exec.simple.counting.token]
namespace std::execution {struct simple_counting_scope::token {template<sender Sender> Sender&& wrap(Sender&& snd) const noexcept; bool try_associate() const noexcept; void disassociate() const noexcept; private: simple_counting_scope* scope; // exposition only};}
template<[sender](exec.snd.concepts#concept:sender "33.9.3 Sender concepts [exec.snd.concepts]") Sender> Sender&& wrap(Sender&& snd) const noexcept;
Returns: std::forward(snd).
bool try_associate() const noexcept;
Effects: Equivalent to: return scope->try-associate();
void disassociate() const noexcept;
Effects: Equivalent to scope->disassociate().