BloombergLP::bslstl::StopCallback_CallbackStorage::StopCallback_CallbackStorage

Initialize the stored callback by forwarding from arg.

Synopsis

Declared in <bslstl_stoptoken.h>

template<class t_ARG>
StopCallback_CallbackStorage(
    allocator_type const& allocator,
    t_ARG&& arg);

Description

The specified allocator is used to supply memory if t_CALLBACK is allocator-aware (and ignored otherwise).

Parameters

NameDescription
allocatorallocator used to supply memory when needed
argargument forwarded to construct t_CALLBACK