load overloads
Synopses
Declared in <bslstl_sharedptr.h>
Reset this shared_ptr from the specified arguments.
template<class COMPATIBLE_TYPE>
void
load(COMPATIBLE_TYPE* ptr);
Reset this shared_ptr from the specified arguments.
template<class COMPATIBLE_TYPE>
void
load(
COMPATIBLE_TYPE* ptr,
BloombergLP::bslma::Allocator* basicAllocator);
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);
Parameters
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 |
Created with MrDocs