System::MakeObject method
Contents
[
Hide
]System::MakeObject(Args&&…) method
Creates object on heap and returns shared pointer to it.
template<class T,class ...> std::enable_if<!IsSmartPtr<T>::value, SmartPtr<T>>::type System::MakeObject(Args &&... args)
Parameter | Description |
---|---|
T | Class to instantiate. |
Args | Constructor arguments’ types. |
Parameter | Type | Description |
---|---|---|
args | Args&&… | Constructor arguments. |
ReturnValue
SmartPtr to newly created object, always in shared mode.
See Also
- Class SmartPtr
- Namespace System
- Library Aspose.PDF for C++
System::MakeObject(Args&&…) method
Creates object on heap and returns shared pointer to it.
template<class T,class ...> std::enable_if<IsSmartPtr<T>::value, T>::type System::MakeObject(Args &&... args)
Parameter | Description |
---|---|
T | SmartPtr to class to instantiate. |
Args | Constructor arguments’ types. |
Parameter | Type | Description |
---|---|---|
args | Args&&… | Constructor arguments. |
ReturnValue
SmartPtr to newly created object, always in shared mode.
See Also
- Namespace System
- Library Aspose.PDF for C++