#
The class
never_
stop_
token
models the
unstoppable_
token
concept
.
It provides a stop token interface, but also provides static information that a stop is never possible nor requested
.
🔗
namespace
std
{
class
never_stop_token
{
struct
callback-type
{
/
exposition only
explicit
callback-type
(
never_stop_token,
auto
&
)
noexcept
{
}
}
;
public
:
template
<
class
>
using
callback_type
=
callback-type
;
static
constexpr
bool
stop_requested
(
)
noexcept
{
return
false
;
}
static
constexpr
bool
stop_possible
(
)
noexcept
{
return
false
;
}
bool
operator
=
(
const
never_stop_token
&
)
const
=
default
;
}
;
}