System::ConstCast method

System::ConstCast method

End of deprecated casts.

template<typename TTo,typename TFrom> CastResult<TTo>::type System::ConstCast(const SmartPtr<TFrom> &obj)
ParameterDescription
TToTarget pointee type.
TFromSource pointee type.
ParameterTypeDescription
objconst SmartPtr<TFrom>&Source pointer.

ReturnValue

Cast result if cast is allowed or nullptr otherwise.

Remarks

Performs const cast on SmartPtr objects.

See Also