Return a shared_ptr to the observed object, or empty if expired.
Synopsis
Declared in <bslstl_sharedptr.h>
shared_ptr<ELEMENT_TYPE>
acquireSharedPtr() const noexcept;
Description
Return a shared pointer to the object referred to by this weak pointer and managing the same object as that managed by this weak pointer (if any) if false == expired(), and a shared pointer in the empty state otherwise. Note that the behavior of this method is the same as that of lock.
Return Value
shared pointer to the observed object, or empty if expired
Created with MrDocs