static_pointer_cast()

SmartPtr::static_pointer_cast() const method

Casts pointer to different type using static_cast on pointed object.

template<class Y> SmartPtr<Y> System::SmartPtr<T>::static_pointer_cast() const

Template parameters

ParameterDescription
YTarget type of pointed object.

Return Value

Pointer of changed type which is always in shared mode.

See Also