BloombergLP::bslma::ManagedPtr::release

release overloads

Synopses

Declared in <bslma_managedptr.h>

Return a raw pointer to the current target object (if any) and the deleter for the currently managed object, and reset this managed pointer to empty. It is undefined behavior to run the returned deleter unless the returned pointer to target object is not null.

ManagedPtr_PairProxy<TARGET_TYPE, ManagedPtrDeleter>
release();
» more...

Load the specified deleter for the currently managed object and reset this managed pointer to empty. Return a raw pointer to the target object (if any) managed by this pointer. It is undefined behavior to run the returned deleter unless the returned pointer to target object is not null.

TARGET_TYPE*
release(ManagedPtrDeleter* deleter);
» more...