Equals()

System::BoxedValueDetail::Equals(T, T) function

Determines the equality of the specified value using operator==().

template<typename T> std::enable_if<detail::has_operator_equal<T>::value, bool>::type System::BoxedValueDetail::Equals(T value1, T value2)

Template parameters

ParameterDescription
Thetype of the values being compared

Arguments

ParameterTypeDescription
value1TThe first comparand
value2TThe second comparand

Return Value

True if the specified value are equal as determined by operator==(), otherwise - false

System::BoxedValueDetail::Equals(T, T) function

Determines the equality of the specified value using method System::Object::Equals().

template<typename T> std::enable_if<detail::has_only_method_equals<T>::value, bool>::type System::BoxedValueDetail::Equals(T value1, T value2)

Template parameters

ParameterDescription
Thetype of the values being compared

Arguments

ParameterTypeDescription
value1TThe first comparand
value2TThe second comparand

Return Value

True if the specified value are equal as determined by method Equals(), otherwise - false

See Also