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

Name

Description

allocator_type

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

Member Functions

Name

Description

StopCallback_CallbackStorage [constructor]

Constructors

~StopCallback_CallbackStorage [destructor]

Destroy this object.

callback

callback overloads

Specializations

Name

Description

StopCallback_CallbackStorage<t_CALLBACK, true>

This partial specialization stores a reference to a callback.

Derived Classes

Name

Description

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.

Created with MrDocs