MakeObject()
Contents
[
Hide
]System::MakeObject(Args&&…) function
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)
Template parameters
Parameter | Description |
---|---|
T | Class to instantiate. |
Args | Constructor arguments’ types. |
Arguments
Parameter | Type | Description |
---|---|---|
args | Args&&… | Constructor arguments. |
Return Value
SmartPtr to newly created object, always in shared mode.
System::MakeObject(Args&&…) function
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)
Template parameters
Parameter | Description |
---|---|
T | SmartPtr to class to instantiate. |
Args | Constructor arguments’ types. |
Arguments
Parameter | Type | Description |
---|---|---|
args | Args&&… | Constructor arguments. |
Return Value
SmartPtr to newly created object, always in shared mode.
See Also
- Class SmartPtr
- Struct IsSmartPtr
- Namespace System
- Library Aspose.Slides