Méthode System::dynamic_pointer_cast

System::dynamic_pointer_cast method

Convertit les pointeurs intelligents en utilisant dynamic_cast.

template<class Y,class X> SmartPtr<Y> System::dynamic_pointer_cast(SmartPtr<X> const &x)
ParamètreDescription
XType d’objet pointé par le pointeur source.
YType d’objet pointé par le pointeur cible.
ParamètreTypeDescription
xSmartPtr\<X\> const\&Pointeur source.

ReturnValue

Pointeur après conversion.

Voir aussi