Metodo System::ObjectExt::UnknownToObject
Contenuti
[
Nascondere
]ObjectExt::UnknownToObject(const T&) method
Converte un tipo sconosciuto in Object, gestendo sia i casi di smart pointer che di tipo valore.
template<typename T> static std::enable_if<!IsSmartPtr<T>::value, System::SmartPtr<Object>>::type System::ObjectExt::UnknownToObject(const T &obj)
| Parametro | Descrizione |
|---|---|
| T | Tipo da convertire in Object. |
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | const T& | Object da convertire. |
ReturnValue
Smart pointer a Object che può essere sia un puntatore convertito sia un valore incapsulato.
Vedi anche
- Class SmartPtr
- Class Object
- Class ObjectExt
- Namespace System
- Library Aspose.Font for C++
ObjectExt::UnknownToObject(T) method
Converte un tipo sconosciuto in Object, gestendo sia i casi di smart pointer che di tipo valore.
template<typename T> static std::enable_if<IsSmartPtr<T>::value, System::SmartPtr<Object>>::type System::ObjectExt::UnknownToObject(T obj)
| Parametro | Descrizione |
|---|---|
| T | Tipo da convertire in Object. |
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | T | Object da convertire. |
ReturnValue
Smart pointer a Object che può essere sia un puntatore convertito sia un valore incapsulato.
Vedi anche
- Class SmartPtr
- Class Object
- Class ObjectExt
- Namespace System
- Library Aspose.Font for C++