System::ForceStaticCast method

System::ForceStaticCast method

Performs real static cast on SmartPtr objects.

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

ReturnValue

Cast result if cast is allowed, otherwise the behavior is undefined.

See Also