[stopsource.general] (original) (raw)
32 Concurrency support library [thread]
32.3 Stop tokens [thread.stoptoken]
32.3.5 Class stop_source [stopsource]
32.3.5.1 General [stopsource.general]
namespace std { class stop_source { public: stop_source();explicit stop_source(nostopstate_t) noexcept {} void swap(stop_source&) noexcept;bool request_stop() noexcept;bool operator==(const stop_source& rhs) noexcept = default;private: shared_ptr<_unspecified_> stop-state; };}
stop-state refers to the stop_source's associated stop state.
A stop_source object is disengaged when stop-state is empty.