System::Cast method

System::Cast method

Performs cast on SmartPtr objects.

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::Cast(SmartPtr<TFrom> const &obj)
ParameterDescription
TToTarget pointee type.
TFromSource pointee type.
ParameterTypeDescription
objSmartPtr<TFrom> const&Source pointer.

ReturnValue

Cast result if cast is allowed.

See Also