System::const_pointer_cast-methode

System::const_pointer_cast method

Zet smart pointers om met const_cast.

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