Skip to content

Equals<T>

Equals

Compares two values ​​for equality.

template<typename T>
bool Equals(
   T  x,     // the first value
   T  y      // the second value
   );

Parameters

x

[in] The first value

y

[in] The second value

Return Value

Returns true if the objects are equal, or false otherwise.

Note

If the T type is an object that implements the IEqualityComparable interface, then the objects will be compared based on its Equals comparison method. The standard comparison for equality is used in all other cases.

Last updated on