System::StaticCast methode
System::StaticCast(const TFrom&) method
Voert een statische cast uit op niet‑pointerobjecten.
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)
| Parameter | Beschrijving |
|---|---|
| TTo | Doeltype. |
| TFrom | Brontype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| obj | const TFrom& | Bronobject. |
ReturnValue
Cast‑resultaat als de cast is toegestaan.
Deprecated
Behoudens voor achterwaartse compatibiliteit. Gebruik ExplicitCast in plaats daarvan.
Zie ook
- Class String
- Namespace System
- Library Aspose.Page for C++
System::StaticCast(const TFrom&) method
Voert een static cast uit op Exception objecten.
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)
| Parameter | Beschrijving |
|---|---|
| TTo | Doel Exception type. |
| TFrom | Bron Exception type. |
| Parameter | Type | Beschrijving |
|---|---|---|
| obj | const TFrom& | Bron‑pointer. |
ReturnValue
Cast‑resultaat als de cast is toegestaan.
Deprecated
Behoudens voor achterwaartse compatibiliteit. Gebruik ExplicitCast in plaats daarvan.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::StaticCast(const TFrom *) method
Specialisatie voor rekenkundige types.
template<typename TTo,typename TFrom> std::enable_if<std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(const TFrom *value)
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::StaticCast(SmartPtr<TFrom> const&) method
Voert een static cast uit op SmartPtr objecten.
template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::StaticCast(SmartPtr<TFrom> const &obj)
| Parameter | Beschrijving |
|---|---|
| TTo | Doel‑pointee type. |
| TFrom | Bron‑pointee type. |
| Parameter | Type | Beschrijving |
|---|---|---|
| obj | SmartPtr<TFrom> const& | Bron‑pointer. |
ReturnValue
Cast‑resultaat als de cast is toegestaan.
Deprecated
Behoudens voor achterwaartse compatibiliteit. Gebruik ExplicitCast in plaats daarvan.
Zie ook
- Class SmartPtr
- Namespace System
- Library Aspose.Page for C++
System::StaticCast(SmartPtr<TFrom>) method
Voert een statische cast uit op Objects naar Exception objecten.
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
| Parameter | Beschrijving |
|---|---|
| TTo | Doel Exception type. |
| TFrom | Object type. |
| Parameter | Type | Beschrijving |
|---|---|---|
| obj | SmartPtr<TFrom> | Bron‑pointer. |
ReturnValue
Cast‑resultaat als de cast is toegestaan.
Deprecated
Behoudens voor achterwaartse compatibiliteit. Gebruik ExplicitCast in plaats daarvan.
Zie ook
- Class Object
- Class SmartPtr
- Namespace System
- Library Aspose.Page for C++
System::StaticCast(std::nullptr_t) method
Voert een statische cast uit van null-objecten.
template<typename TTo> CastResult<TTo>::type System::StaticCast(std::nullptr_t)
| Parameter | Beschrijving |
|---|---|
| TTo | Doel‑pointee type. |
ReturnValue
nullptr.
Deprecated
Behoudens voor achterwaartse compatibiliteit. Gebruik ExplicitCast in plaats daarvan.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::StaticCast(TFrom) method
Specialisatie voor rekenkundige types.
template<typename TTo,typename TFrom> std::enable_if<std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(TFrom value)
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::StaticCast(TTo) method
Voer een cast uit van String naar String.
template<typename TTo> std::enable_if<std::is_same<TTo, System::String>::value, TTo>::type System::StaticCast(TTo value)
Zie ook
- Class String
- Namespace System
- Library Aspose.Page for C++
System::StaticCast(WeakPtr<TFrom> const&) method
Voert een statische cast uit op WeakPtr objecten.
template<typename TTo,typename TFrom> CastResult<TTo>::type System::StaticCast(WeakPtr<TFrom> const &obj)
| Parameter | Beschrijving |
|---|---|
| TTo | Doel‑pointee type. |
| TFrom | Bron‑pointee type. |
| Parameter | Type | Beschrijving |
|---|---|---|
| obj | WeakPtr<TFrom> const& | Bron‑pointer. |
ReturnValue
Cast‑resultaat als de cast is toegestaan.
Deprecated
Behoudens voor achterwaartse compatibiliteit. Gebruik ExplicitCast in plaats daarvan.
Zie ook
- Class WeakPtr
- Namespace System
- Library Aspose.Page for C++