System::static_pointer_cast methode

System::static_pointer_cast method

Casts smart pointers met static_cast.

template<class Y,class X> SmartPtr<Y> System::static_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