ConstCast()

System::ConstCast(const SmartPtr<TFrom>&) function

End of deprecated casts.

template<typename TTo,typename TFrom> CastResult<TTo>::type System::ConstCast(const SmartPtr<TFrom> &obj)

Template parameters

ParameterDescription
TToTarget pointee type.
TFromSource pointee type.

Arguments

ParameterTypeDescription
objconst SmartPtr<TFrom>&Source pointer.

Return Value

Cast result if cast is allowed or nullptr otherwise.

Remarks

Performs const cast on SmartPtr objects.

See Also