BloombergLP::bslstl::StopCallback_Node

Component-private node storing a stop callback for StopState.

Synopsis

Declared in <bslstl_stoptoken.h>

template<class t_CALLBACK>
class StopCallback_Node
    : public StopCallback_CallbackStorage<t_CALLBACK>
    , public StopStateCallbackNode

Description

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.

Base Classes

NameDescription
StopCallback_CallbackStorage<t_CALLBACK>Stores a non-reference t_CALLBACK object for stop callbacks.
StopStateCallbackNodeIntrusive list node that stores a registered stop-callback invocation.

Type Aliases

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

Member Functions

NameDescription
StopCallback_Node [constructor]Constructors
callback callback overloads
invoke [virtual]Invoke the callback stored in the derived class.