System::Cast method

System::Cast method

Effectue un cast sur les objets SmartPtr.

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::Cast(SmartPtr<TFrom> const &obj)
ParamètreDescription
TToType du pointeur cible.
TFromType du pointeur source.
ParamètreTypeDescription
objSmartPtr<TFrom> const&Pointeur source.

ReturnValue

Résultat du cast si le cast est autorisé.

Voir aussi