33
Concurrency support library
[thread]
33.3
Stop tokens
[thread.stoptoken]
33.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 template
stop_
callback
template
<
class
Callback
>
class
stop_callback;
}