bsl::stop_callback::stop_callback

Constructors

Synopses

Declared in <bslstl_stoptoken.h>

Same as the preceding overload.

template<class t_ARG>
explicit
stop_callback(
    BloombergLP::bslmf::MovableRef<stop_token> token,
    t_ARG& arg,
    allocator_type const& alloc = allocator_type());
» more...

Same as the preceding overload.

template<class t_ARG>
explicit
stop_callback(
    BloombergLP::bslmf::MovableRef<stop_token> token,
    t_ARG&& arg,
    allocator_type const& alloc = allocator_type());
» more...

Same as the preceding overload.

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

Create a stop_callback that stores a callable constructed from arg and registers it with the stop state of token, if any.

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