System::ForceStaticCast méthode

System::ForceStaticCast method

Effectue un cast statique réel sur les objets SmartPtr.

template<typename TTo,typename TFrom> CastResult<TTo>::type System::ForceStaticCast(SmartPtr<TFrom> const &obj)
ParamètreDescription
TToType pointeur cible.
TFromType pointeur source.
ParamètreTypeDescription
objSmartPtr<TFrom> const&Pointeur source.

ReturnValue

Résultat du cast si le cast est autorisé, sinon le comportement est indéfini.

Voir aussi