System::MakeSharedPtr method
Contents
[
Hide
]System::MakeSharedPtr(const X *) method
Converts raw pointer to smart pointer. Overload for const pointers. Useful e. g. when using ’this’ variable in C# methods translated as const.
template<class X> SmartPtr<X> System::MakeSharedPtr(const X *p)
Parameter | Description |
---|---|
X | Pointee type. |
Parameter | Type | Description |
---|---|---|
p | const X * | Raw pointer to object. |
ReturnValue
Shared smart pointer to object.
See Also
- Class SmartPtr
- Namespace System
- Library Aspose.Page for C++
System::MakeSharedPtr(X *) method
Converts raw pointer to smart pointer.
template<class X> SmartPtr<X> System::MakeSharedPtr(X *p)
Parameter | Description |
---|---|
X | Pointee type. |
Parameter | Type | Description |
---|---|---|
p | X * | Raw pointer to object. |
ReturnValue
Shared smart pointer to object.
See Also
- Class SmartPtr
- Namespace System
- Library Aspose.Page for C++