2.0 KiB
[exec.opstate.general]
33 Execution control library [exec]
33.8 Operation states [exec.opstate]
33.8.1 General [exec.opstate.general]
The operation_state concept defines the requirements of an operation state type ([exec.async.ops]).
namespace std::execution {templateconcept operation_state =derived_from<typename O::operation_state_concept, operation_state_t> &&requires (O& o) { start(o); };}
If an operation_state object is destroyed during the lifetime of its asynchronous operation ([exec.async.ops]), the behavior is undefined.
[Note 1:
The operation_state concept does not impose requirements on any operations other than destruction and start, including copy and move operations.
Invoking any such operation on an object whose type models operation_state can lead to undefined behavior.
â end note]
The program is ill-formed if it performs a copy or move construction or assignment operation on an operation state object created by connecting a library-provided sender.