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 | キャスト対象の配列要素の要素の型 |
| パラメーター | 型 | 説明 |
|---|---|---|
| from | const System::SharedPtr<System::Array<From>>& | キャスト対象の要素を含む配列への共有ポインタ |
ReturnValue
from の要素に相当する To 型の要素を含む新しい配列へのポインタ
Deprecated
下位互換性のために追加されました。代わりに ExplicitCast を使用してください。
参照
- Typedef SharedPtr
- Class Array
- Namespace System
- Library Aspose.Page for C++
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 | キャスト対象の配列要素の要素の型 |
| パラメーター | 型 | 説明 |
|---|---|---|
| from | const System::SharedPtr<System::Array<From>>& | キャスト対象の要素を含む配列への共有ポインタ |
ReturnValue
from の要素に相当する To 型の要素を含む新しい配列へのポインタ
Deprecated
下位互換性のために追加されました。代わりに ExplicitCast を使用してください。
参照
- Typedef SharedPtr
- Class Object
- Class Array
- Namespace System
- Library Aspose.Page for C++