Create a managed pointer by taking ownership from original.
Synopsis
Declared in <bslma_managedptr.h>
ManagedPtr(bslmf::MovableRef<ManagedPtr> original) noexcept;
Description
Create a managed pointer having the same target object as the specified original, transfer ownership of the object managed by original (if any) to this managed pointer, and reset original to empty.
Parameters
Name |
Description |
original |
managed pointer from which to take ownership |
Created with MrDocs