System::const_pointer_cast method

System::const_pointer_cast method

Casts smart pointers using const_cast.

template<class Y,class X> SmartPtr<Y> System::const_pointer_cast(SmartPtr<X> const &x)
ParameterDescription
XSource pointer pointee type.
YTarget pointer pointee type.
ParameterTypeDescription
xSmartPtr<X> const&Source pointer.

ReturnValue

Pointer after cast.

See Also