System::StaticCast_noexcept メソッド

System::StaticCast_noexcept(const TFrom&) method

Exception オブジェクトに対して static cast を実行します。

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_noexcept(const TFrom &obj)
パラメーター説明
TTo対象の Exception 型。
TFromソースの Exception 型。
パラメーター説明
objconst TFrom&ソース ポインタ。

ReturnValue

キャストが許可されている場合はキャスト結果を、そうでない場合は nullptr を返します。

Deprecated

下位互換性のために残されています。代わりに AsCast を使用してください。

参照

System::StaticCast_noexcept(SmartPtr<TFrom> const&) method

SmartPtr オブジェクトに対して static cast を実行します。

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::StaticCast_noexcept(SmartPtr<TFrom> const &obj)
パラメーター説明
TTo対象のポインティー型。
TFromソースのポインティー型。
パラメーター説明
objSmartPtr<TFrom> const&ソース ポインタ。

ReturnValue

キャストが許可されている場合はキャスト結果を、そうでない場合は nullptr を返します。

Deprecated

下位互換性のために残されています。代わりに AsCast を使用してください。

参照

System::StaticCast_noexcept(SmartPtr<TFrom>) method

Objects を Exception オブジェクトに static cast します。

template<typename TTo,typename TFrom> std::enable_if<std::is_same<System::Object, TFrom>::value &&IsExceptionWrapper<TTo>::value, TTo>::type System::StaticCast_noexcept(SmartPtr<TFrom> obj) noexcept
パラメーター説明
TTo対象の Exception 型。
TFromObject 型。
パラメーター説明
objSmartPtr<TFrom>ソース ポインタ。

ReturnValue

キャストが許可されている場合はキャスト結果を、そうでない場合は nullptr を返します。

Deprecated

下位互換性のために残されています。代わりに AsCast を使用してください。

参照

System::StaticCast_noexcept(WeakPtr<TFrom> const&) method

WeakPtr オブジェクトに対して static cast を実行します。

template<typename TTo,typename TFrom> CastResult<TTo>::type System::StaticCast_noexcept(WeakPtr<TFrom> const &obj)
パラメーター説明
TTo対象のポインティー型。
TFromソースのポインティー型。
パラメーター説明
objWeakPtr<TFrom> const&ソース ポインタ。

ReturnValue

キャストが許可されている場合はキャスト結果を、そうでない場合は nullptr を返します。

Deprecated

下位互換性のために残されています。代わりに AsCast を使用してください。

参照