Files
cppdraft_translate/cppdraft/exec/simple/counting/token.md
2025-10-25 03:02:53 +03:00

1.8 KiB
Raw Blame History

[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.3Sender concepts[exec.snd.concepts]") Sender> Sender&& wrap(Sender&& snd) const noexcept;

1

#

Returns: std::forward(snd).

🔗

bool try_associate() const noexcept;

2

#

Effects: Equivalent to: return scope->try-associate();

🔗

void disassociate() const noexcept;

3

#

Effects: Equivalent to scope->disassociate().