System::static_pointer_cast メソッド

System::static_pointer_cast method

static_castを使用してスマートポインタをキャストします。

template<class Y,class X> SmartPtr<Y> System::static_pointer_cast(SmartPtr<X> const &x)
パラメーター説明
Xソースポインタが指す型。
Y対象ポインタの指す型。
パラメーター説明
xSmartPtr<X> const&ソース ポインタ。

ReturnValue

キャスト後のポインタ。

参照