System::StaticCastArray メソッド

System::StaticCastArray(const System::SharedPtr<System::Array<From>>&) method

指定された配列の要素を別の型にキャストします。From が SmartPtr オブジェクトである場合のオーバーライドです。

template<typename To,typename From> std::enable_if_t<System::IsSmartPtr<From>::value, System::SharedPtr<System::Array<To>>> System::StaticCastArray(const System::SharedPtr<System::Array<From>> &from)
パラメーター説明
指定された配列の要素をキャストする型
Fromキャスト対象の配列要素の要素の型
パラメーター説明
fromconst System::SharedPtr<System::Array<From>>&キャスト対象の要素を含む配列への共有ポインタ

ReturnValue

from の要素に相当する To 型の要素を含む新しい配列へのポインタ

Deprecated

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

参照

System::StaticCastArray(const System::SharedPtr<System::Array<From>>&) method

指定された配列の要素を別の型にキャストします。From が Boxable で To が Object[]. の場合のオーバーライドです。

template<typename To,typename From> std::enable_if_t<!System::IsSmartPtr<From>::value &&System::IsBoxable<From>::value &&std::is_same<To, System::SharedPtr<Object>>::value, System::SharedPtr<System::Array<To>>> System::StaticCastArray(const System::SharedPtr<System::Array<From>> &from)
パラメーター説明
指定された配列の要素をキャストする型
Fromキャスト対象の配列要素の要素の型
パラメーター説明
fromconst System::SharedPtr<System::Array<From>>&キャスト対象の要素を含む配列への共有ポインタ

ReturnValue

from の要素に相当する To 型の要素を含む新しい配列へのポインタ

Deprecated

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

参照