This class holds a managed pointer reference, returned by the implicit conversion operator in the class ManagedPtr. This class is used to allow the construction of managed pointers from temporary managed pointer objects, since temporaries cannot bind to the reference to a modifiable object used in the copy constructor and copy‐assignment operator for ManagedPtr. Note that while no members or methods of this class template depend on the specified TARGET_TYPE, it is important to carry this type into conversions to support passing ownership of ManagedPtr_Members pointers when assigning or constructing ManagedPtr objects.
Synopsis
Declared in <bslma_managedptr.h>
template<class TARGET_TYPE>
class ManagedPtr_Ref;
Member Functions
Name |
Description |
|
Create a |
|
Destroy this object. Note that the referenced managed object is not destroyed. |
Return a pointer to the managed state of a |
|
Return a pointer to the referenced object. |
Created with MrDocs