bsl::stop_callback::stop_callback

Same as the preceding overload.

Synopsis

Declared in <bslstl_stoptoken.h>

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

Parameters

NameDescription
tokenstop token whose stop state the callback may register with
argargument forwarded to construct the stored callable
allocallocator used when t_CALLBACK is allocator-aware