[#BloombergLP-bslstl-StopCallback_CallbackStorage-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::StopCallback_CallbackStorage :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_CALLBACK, bool t_IS_REFERENCE = bsl::is_reference<t_CALLBACK>::value> class StopCallback_CallbackStorage; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/StopCallback_CallbackStorage-06/allocator_type.adoc[`allocator_type`] | Allocator type used when `t_CALLBACK` is allocator‐aware; otherwise an empty dummy type. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/StopCallback_CallbackStorage-06/2constructor-04.adoc[`StopCallback_CallbackStorage`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bslstl/StopCallback_CallbackStorage-06/2destructor.adoc[`~StopCallback_CallbackStorage`] [.small]#[destructor]# | Destroy this object. | xref:BloombergLP/bslstl/StopCallback_CallbackStorage-06/callback-00a.adoc[`callback`] | `callback` overloads |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/StopCallback_CallbackStorage-05.adoc[`StopCallback_CallbackStorage<t_CALLBACK, true>`] | This partial specialization stores a reference to a callback. |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/StopCallback_Node.adoc[`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`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#