template<class TARGET_TYPE>
class bslma::ManagedPtr_Ref< TARGET_TYPE >
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
- 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.
See bslma_managedptr