load overloads
Declared in <bslstl_sharedptr.h>
Reset this shared_ptr from the specified arguments.
template<class COMPATIBLE_TYPE>
void
load(COMPATIBLE_TYPE* ptr);
» more...
Reset this shared_ptr from the specified arguments.
template<class COMPATIBLE_TYPE>
void
load(
COMPATIBLE_TYPE* ptr,
BloombergLP::bslma::Allocator* basicAllocator);
» more...
Reset this shared_ptr to manage ptr with a deleter and allocator.
template<
class COMPATIBLE_TYPE,
class DELETER>
void
load(
COMPATIBLE_TYPE* ptr,
DELETER const& deleter,
BloombergLP::bslma::Allocator* basicAllocator);
» more...
| Name | Description |
|---|---|
| ptr | pointer to the object to manage or refer to |
| basicAllocator | allocator used to supply memory |
| deleter | deleter invoked when the last shared reference is released |