Stores a non‐reference t_CALLBACK object for stop callbacks.

Synopsis

Declared in <bslstl_stoptoken.h>

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

Description

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.)

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

Component‐private node storing a stop callback for StopState.

Created with MrDocs