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