Return the pair consisting of the addresses of the modifiable ELEMENT_TYPE object referred to, and the representation shared by, this shared pointer, and reset this shared pointer to the empty state, referring to no object, with no effect on the representation. The reference counter is not modified nor is the shared object deleted; if the reference count of the representation is greater than one, then it is not safe to release the representation (thereby destroying the shared object), but it is always safe to create another shared pointer with the representation using the constructor with the following signature: ` 'shared_ptr(ELEMENT_TYPE *ptr, BloombergLP::bslma::SharedPtrRep *rep)' ` Note that this function returns a pair of null pointers if this shared pointer is empty.
Synopsis
Declared in <bslstl_sharedptr.h>
pair<element_type*, BloombergLP::bslma::SharedPtrRep*>
release() noexcept;
Created with MrDocs