xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::iequatable< type_t > Class Template Referenceabstract

Defines a generalized method that a value type or class implements to create a type-specific method for determining equality of instances. More...

#include <iequatable.h>

Inheritance diagram for xtd::iequatable< type_t >:
xtd::interface

Public Member Functions

virtual bool equals (const type_t &) const noexcept=0
 Indicates whether the current object is equal to another object of the same type. More...
 
virtual bool equals (const object &) const noexcept=0
 Indicates whether the current object is equal to another object of the same type. More...
 

Detailed Description

template<typename type_t>
class xtd::iequatable< type_t >

Defines a generalized method that a value type or class implements to create a type-specific method for determining equality of instances.

Remarks
This interface is implemented by types whose values can be equated (for example, the numeric and string classes). A value type or class implements the equals method to create a type-specific method suitable for determining equality of instances.
The icomparable<T> interface defines the compare_to method, which determines the sort order of instances of the implementing type. The iequatable<T> interface defines the equals method, which determines the equality of instances of the implementing type.

The documentation for this class was generated from the following file: