System::ObjectExt::UnknownToObject method
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)
Parameter | Description |
---|---|
T | Type to convert to Object. |
Parameter | Type | Description |
---|---|---|
obj | T | Object to convert. |
ReturnValue
Smart pointer to Object being either converted pointer or boxed value.
See Also
- Class SmartPtr
- Class Object
- Class ObjectExt
- Namespace System
- Library Aspose.Font for C++
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)
Parameter | Description |
---|---|
T | Type to convert to Object. |
Parameter | Type | Description |
---|---|---|
obj | const T& | Object to convert. |
ReturnValue
Smart pointer to Object being either converted pointer or boxed value.
See Also
- Class SmartPtr
- Class Object
- Class ObjectExt
- Namespace System
- Library Aspose.Font for C++