Cast_noexcept()

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

Performs cast on SmartPtr objects.

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::Cast_noexcept(SmartPtr<TFrom> const &obj)

Template parameters

ParameterDescription
TToTarget pointee type.
TFromSource pointee type.

Arguments

ParameterTypeDescription
objSmartPtr<TFrom> const&Source pointer.

Return Value

Cast result if cast is allowed or nullptr otherwise.

See Also