System::dynamic_pointer_cast methode

System::dynamic_pointer_cast method

Casts smart pointers met dynamic_cast.

template<class Y,class X> SmartPtr<Y> System::dynamic_pointer_cast(SmartPtr<X> const &x)
ParameterBeschrijving
XBronpointer pointee type.
YDoelpointer pointee type.
ParameterTypeBeschrijving
xSmartPtr<X> const&Bron‑pointer.

ReturnValue

Pointer na cast.

Zie ook