Cbeam
|
Construct a new pointer object from a std::shared_ptr<T>
.
Construct a new pointer object from a std::shared_ptr<T>
.This constructor allows the creation of a pointer object from a std::shared_ptr
with any template argument. The lifetime of the referenced object is maintained by the shared pointer's reference count.
T | The type of the object that the std::shared_ptr is pointing to. |
ptr | A std::shared_ptr to an object of type T. |