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

Name

Description

StopCallback_CallbackStorage<t_CALLBACK>

Stores a non‐reference t_CALLBACK object for stop callbacks.

StopStateCallbackNode

Intrusive list node that stores a registered stop‐callback invocation.

Type Aliases

Name

Description

allocator_type

Allocator type used when t_CALLBACK is allocator‐aware; otherwise an empty dummy type.

Member Functions

Name

Description

StopCallback_Node [constructor]

Constructors

callback

callback overloads

invoke [virtual]

Invoke the callback stored in the derived class.

Created with MrDocs