Return true if *this refers to a stop state, and false otherwise. A call to stop_possible that is potentially concurrent with a call to stop_requested, stop_possible, or request_stop does not cause a data race.

Synopsis

Declared in <bslstl_stoptoken.h>

[[nodiscard]]
bool
stop_possible() const noexcept;

Return Value

Note

The return value should not be discarded.

Created with MrDocs