|
BDE 4.14.0 Production release
|
#include <bslstl_stoptoken.h>
Public Member Functions | |
| template<class t_ALLOC , class t_ARG > | |
| StopCallback_Node (const t_ALLOC &allocator, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG) arg) | |
| template<class t_ALLOC , class t_ARG > | |
| StopCallback_Node (const t_ALLOC &allocator, t_ARG &arg) | |
Public Member Functions inherited from bslstl::StopCallback_CallbackStorage< t_CALLBACK, t_IS_REFERENCE > | |
| template<class t_ARG > | |
| StopCallback_CallbackStorage (const allocator_type &allocator, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG) arg) | |
| template<class t_ARG > | |
| StopCallback_CallbackStorage (const allocator_type &allocator, t_ARG &arg) | |
| ~StopCallback_CallbackStorage () | |
| Destroy this object. | |
| t_CALLBACK & | callback () |
| Return a reference to the stored callback. | |
| const t_CALLBACK & | callback () const |
Return a const reference to the stored callback. | |
Additional Inherited Members | |
Public Types inherited from bslstl::StopCallback_CallbackStorage< t_CALLBACK, t_IS_REFERENCE > | |
| typedef bsl::conditional< BloombergLP::bslma::UsesBslmaAllocator< t_CALLBACK >::value, bsl::allocator< char >, StopCallback_NoAlloc >::type | allocator_type |
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.
| bslstl::StopCallback_Node< t_CALLBACK >::StopCallback_Node | ( | const t_ALLOC & | allocator, |
| BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG) | arg | ||
| ) |
Create a StopCallback_Node object whose stored callable is constructed by forwarding from the specified arg; the specified allocator is used to supply memory if t_CALLBACK is allocator-aware (and ignored otherwise).
| bslstl::StopCallback_Node< t_CALLBACK >::StopCallback_Node | ( | const t_ALLOC & | allocator, |
| t_ARG & | arg | ||
| ) |