Same as the preceding overload.

Synopsis

Declared in <bslstl_stoptoken.h>

template<class t_ARG>
explicit
stop_callback(
    stop_token const& token,
    t_ARG& arg,
    allocator_type const& alloc = allocator_type());

Parameters

Name

Description

token

stop token whose stop state the callback may register with

arg

argument forwarded to construct the stored callable

alloc

allocator used when t_CALLBACK is allocator‐aware

Created with MrDocs