10 template<
typename type_t>
24 virtual bool equals(
const type_t&)
const noexcept = 0;
29 virtual bool equals(
const object&)
const noexcept = 0;
33 friend bool operator==(
const type_t&
a,
const type_t&
b) {
return a.equals(
b);}
34 friend bool operator!=(
const type_t&
a,
const type_t&
b) {
return !
a.equals(
b);}
35 friend bool operator==(
const type_t&
a,
const object&
b) {
return a.equals(
b);}
36 friend bool operator!=(
const type_t&
a,
const object&
b) {
return !
a.equals(
b);}
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:19
virtual bool equals(const type_t &) const noexcept=0
Indicates whether the current object is equal to another object of the same type.
virtual bool equals(const object &) const noexcept=0
Indicates whether the current object is equal to another object of the same type.
#define interface_
This keyword is use to represent an interface.
Definition interface.h:55
Contains xtd::interface interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::object class.