System::DynamicCast_noexcept method
System::DynamicCast_noexcept(const TFrom&) method
Old obsolete casts. Will be removed in future versions.
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::DynamicCast_noexcept(const TFrom &obj) noexcept
Parameter | Description |
---|---|
TTo | Target Exception type. |
TFrom | Source Exception type. |
Parameter | Type | Description |
---|---|---|
obj | const TFrom& | Source pointer. |
ReturnValue
Cast result if cast is allowed or nullptr otherwise.
Remarks
Performs dynamic cast on Exception objects. ## Deprecated Left for backwards compatibility. Use AsCast instead.
See Also
- Namespace System
- Library Aspose.TeX for C++
System::DynamicCast_noexcept(SmartPtr<TFrom> const&) method
Performs dynamic cast on SmartPtr objects.
template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::DynamicCast_noexcept(SmartPtr<TFrom> const &obj) noexcept
Parameter | Description |
---|---|
TTo | Target pointee type. |
TFrom | Source pointee type. |
Parameter | Type | Description |
---|---|---|
obj | SmartPtr<TFrom> const& | Source pointer. |
ReturnValue
Cast result if cast is allowed or nullptr otherwise.
Deprecated
Left for backwards compatibility. Use AsCast instead.
See Also
- Class SmartPtr
- Namespace System
- Library Aspose.TeX for C++
System::DynamicCast_noexcept(SmartPtr<TFrom>) method
Performs dynamic cast on Objects to Exception objects.
template<typename TTo,typename TFrom> std::enable_if<std::is_same<System::Object, TFrom>::value &&IsExceptionWrapper<TTo>::value, TTo>::type System::DynamicCast_noexcept(SmartPtr<TFrom> obj) noexcept
Parameter | Description |
---|---|
TTo | Target Exception type. |
TFrom | Object type. |
Parameter | Type | Description |
---|---|---|
obj | SmartPtr<TFrom> | Source pointer. |
ReturnValue
Cast result if cast is allowed or nullptr otherwise.
Deprecated
Left for backwards compatibility. Use AsCast instead.
See Also
- Class Object
- Class SmartPtr
- Namespace System
- Library Aspose.TeX for C++