const_pointer_cast()

System::const_pointer_cast(SmartPtr<X> const&) function

Casts smart pointers using const_cast.

template<class Y,class X> SmartPtr<Y> System::const_pointer_cast(SmartPtr<X> const &x)

Template parameters

ParameterDescription
XSource pointer pointee type.
YTarget pointer pointee type.

Arguments

ParameterTypeDescription
xSmartPtr<X> const&Source pointer.

Return Value

Pointer after cast.

See Also