BloombergLP::bslstl::StopCallback_CallbackStorage

The primary class template stores an object of non-reference type given by the template parameter t_CALLBACK. (That is, the primary template provides the implementation only when t_IS_REFERENCE is false.)

Synopsis

Declared in <bslstl_stoptoken.h>

template<
    class t_CALLBACK,
    bool t_IS_REFERENCE = bsl::is_reference<t_CALLBACK>::value>
class StopCallback_CallbackStorage;

Type Aliases

NameDescription
allocator_type Allocator type used when t_CALLBACK is allocator-aware; otherwise an empty dummy type.

Member Functions

NameDescription
StopCallback_CallbackStorage [constructor]Constructors
~StopCallback_CallbackStorage [destructor]Destroy this object.
callback callback overloads

Specializations

NameDescription
StopCallback_CallbackStorage<t_CALLBACK, true> This partial specialization stores a reference to a callback.

Derived Classes

NameDescription
StopCallback_Node This component-private class is used to implement bsl::stop_callback. It overrides the virtual invoke method of bslstl::StopStateCallbackNode, which allows it to be registered and invoked by bslstl::StopState.