Metodo System::StaticCast
System::StaticCast(const TFrom&) method
Esegue il cast statico su oggetti non puntatore.
template<typename TTo,typename TFrom> std::enable_if<!std::is_same<TFrom, System::String>::value &&!IsExceptionWrapper<TFrom>::value &&!IsSmartPtr<TFrom>::value &&!std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(const TFrom &obj)
| Parametro | Descrizione |
|---|---|
| TTo | Tipo di destinazione. |
| TFrom | Tipo di origine. |
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | const TFrom& | Oggetto di origine. |
ReturnValue
Risultato del cast se il cast è consentito.
Deprecated
Mantenuto per compatibilità retroattiva. Usa ExplicitCast invece.
Vedi anche
- Class String
- Namespace System
- Library Aspose.Font for C++
System::StaticCast(const TFrom&) method
Esegue il cast statico su oggetti Exception.
template<typename TTo,typename TFrom> std::enable_if<IsExceptionWrapper<TFrom>::value &&IsExceptionWrapper<TTo>::value &&(std::is_convertible<TTo, TFrom>::value||std::is_base_of<TTo, TFrom>::value), TTo>::type System::StaticCast(const TFrom &obj)
| Parametro | Descrizione |
|---|---|
| TTo | Tipo di destinazione Exception. |
| TFrom | Tipo di origine Exception. |
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | const TFrom& | Puntatore di origine. |
ReturnValue
Risultato del cast se il cast è consentito.
Deprecated
Mantenuto per compatibilità retroattiva. Usa ExplicitCast invece.
Vedi anche
- Namespace System
- Library Aspose.Font for C++
System::StaticCast(const TFrom *) method
Specializzazione per tipi aritmetici.
template<typename TTo,typename TFrom> std::enable_if<std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(const TFrom *value)
Vedi anche
- Namespace System
- Library Aspose.Font for C++
System::StaticCast(SmartPtr<TFrom> const&) method
Esegue cast statico su oggetti SmartPtr.
template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::StaticCast(SmartPtr<TFrom> const &obj)
| Parametro | Descrizione |
|---|---|
| TTo | Tipo di puntatore di destinazione. |
| TFrom | Tipo di puntatore di origine. |
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | SmartPtr<TFrom> const& | Puntatore di origine. |
ReturnValue
Risultato del cast se il cast è consentito.
Deprecated
Mantenuto per compatibilità retroattiva. Usa ExplicitCast invece.
Vedi anche
- Class SmartPtr
- Namespace System
- Library Aspose.Font for C++
System::StaticCast(SmartPtr<TFrom>) method
Esegue cast statico su oggetti Object a oggetti Exception.
template<typename TTo,typename TFrom> std::enable_if<std::is_same<System::Object, TFrom>::value &&IsExceptionWrapper<TTo>::value, TTo>::type System::StaticCast(SmartPtr<TFrom> obj) noexcept
| Parametro | Descrizione |
|---|---|
| TTo | Tipo di destinazione Exception. |
| TFrom | Tipo Object. |
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | SmartPtr<TFrom> | Puntatore di origine. |
ReturnValue
Risultato del cast se il cast è consentito.
Deprecated
Mantenuto per compatibilità retroattiva. Usa ExplicitCast invece.
Vedi anche
- Class Object
- Class SmartPtr
- Namespace System
- Library Aspose.Font for C++
System::StaticCast(std::nullptr_t) method
Esegue il cast statico di oggetti null.
template<typename TTo> CastResult<TTo>::type System::StaticCast(std::nullptr_t)
| Parametro | Descrizione |
|---|---|
| TTo | Tipo di puntatore di destinazione. |
ReturnValue
nullptr.
Deprecated
Mantenuto per compatibilità retroattiva. Usa ExplicitCast invece.
Vedi anche
- Namespace System
- Library Aspose.Font for C++
System::StaticCast(TFrom) method
Specializzazione per tipi aritmetici.
template<typename TTo,typename TFrom> std::enable_if<std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(TFrom value)
Vedi anche
- Namespace System
- Library Aspose.Font for C++
System::StaticCast(TTo) method
Elabora il cast da String a String.
template<typename TTo> std::enable_if<std::is_same<TTo, System::String>::value, TTo>::type System::StaticCast(TTo value)
Vedi anche
- Class String
- Namespace System
- Library Aspose.Font for C++
System::StaticCast(WeakPtr<TFrom> const&) method
Esegue cast statico su oggetti WeakPtr.
template<typename TTo,typename TFrom> CastResult<TTo>::type System::StaticCast(WeakPtr<TFrom> const &obj)
| Parametro | Descrizione |
|---|---|
| TTo | Tipo di puntatore di destinazione. |
| TFrom | Tipo di puntatore di origine. |
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | WeakPtr<TFrom> const& | Puntatore di origine. |
ReturnValue
Risultato del cast se il cast è consentito.
Deprecated
Mantenuto per compatibilità retroattiva. Usa ExplicitCast invece.
Vedi anche
- Class WeakPtr
- Namespace System
- Library Aspose.Font for C++