static_pointer_cast()

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

Casts smart pointers using static_cast.

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