32 Thread support library [thread]

32.3 Stop tokens [thread.stoptoken]

32.3.2 Header <stop_­token> synopsis [thread.stoptoken.syn]

namespace std { // [stoptoken], class stop_­token class stop_token; // [stopsource], class stop_­source class stop_source; // no-shared-stop-state indicator struct nostopstate_t { explicit nostopstate_t() = default; }; inline constexpr nostopstate_t nostopstate{}; // [stopcallback], class stop_­callback template<class Callback> class stop_callback; }