32
Concurrency support library
[thread]
32.3
Stop tokens
[thread.stoptoken]
32.3.8
Class
inplace_
stop_
token
[stoptoken.inplace]
32.3.8.1
General
[stoptoken.inplace.general]
1
#
The class
inplace_
stop_
token
models the concept
stoppable_
token
.
It references the stop state of its associated
inplace_
stop_
source
object (
[stopsource.
inplace]
), if any
.
namespace
std
{
class
inplace_stop_token
{
public
:
template
<
class
CallbackFn
>
using
callback_type
=
inplace_stop_callback
<
CallbackFn
>
; inplace_stop_token
(
)
=
default
;
bool
operator
=
=
(
const
inplace_stop_token
&
)
const
=
default
;
//
[stoptoken.
inplace.
mem]
, member functions
bool
stop_requested
(
)
const
noexcept
;
bool
stop_possible
(
)
const
noexcept
;
void
swap
(
inplace_stop_token
&
)
noexcept
;
private
:
const
inplace_stop_source
*
stop-source
=
nullptr
;
//
exposition only
}
;
}