This friend declaration provides access to the internal data members while constructing a weak pointer from a weak pointer of a different type.
Synopsis
Declared in <bslstl_sharedptr.h>
template<class ELEMENT_TYPE>
class weak_ptr;
Type Aliases
Name |
Description |
Alias to the element type referenced by this |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this weak pointer object. If this weak pointer manages a (possibly shared) object, release the weak reference to that object. |
Assignment operators |
|
Return a |
|
Return |
|
Return a shared pointer to the object referred to by this weak pointer if |
|
Return the number of |
|
Return whether this |
|
Return whether this pointer shares ownership with |
|
Return a hash value based on this pointer's ownership identity. |
|
Return the address of the held representation, or null if empty. |
|
Reset this |
|
Exchange the state of this |
|
Return the number of |
|
Nested trait declaration for |
Deduction Guides
Name |
Description |
Deduce the specified type |
Friends
Name |
Description |
|
This |