UnknownToObject()
Contents
[
Hide
]ObjectExt::UnknownToObject(T) method
Converts unknown type to Object, handling both smart pointer type and value type situations.
template<typename T> static std::enable_if<IsSmartPtr<T>::value, System::SmartPtr<Object>>::type System::ObjectExt::UnknownToObject(T obj)
Template parameters
Parameter | Description |
---|---|
T | Type to convert to Object. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | T | Object to convert. |
Return Value
Smart pointer to Object being either converted pointer or boxed value.
ObjectExt::UnknownToObject(const T&) method
Converts unknown type to Object, handling both smart pointer type and value type situations.
template<typename T> static std::enable_if<!IsSmartPtr<T>::value, System::SmartPtr<Object>>::type System::ObjectExt::UnknownToObject(const T &obj)
Template parameters
Parameter | Description |
---|---|
T | Type to convert to Object. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | const T& | Object to convert. |
Return Value
Smart pointer to Object being either converted pointer or boxed value.
See Also
- Class SmartPtr
- Class Object
- Class ObjectExt
- Struct IsSmartPtr
- Namespace System
- Library Aspose.Slides