bsl::stop_callback::get_allocator

Return the allocator used to construct this object, if any.

Synopsis

Declared in <bslstl_stoptoken.h>

allocator_type
get_allocator() const;

Description

If t_CALLBACK is allocator-aware, return the allocator used to construct this object; otherwise, the return type is void and the definition of this function is ill-formed.

Return Value

allocator used to construct this object when allocator-aware