xtd 0.2.0
Loading...
Searching...
No Matches
iequality_comparer.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../interface.h"
6#include "../../size.h"
7
9namespace xtd {
11 namespace collections {
13 namespace generic {
33 template<typename type_t>
35 public:
37
47 virtual bool equals(const type_t& x, const type_t& y) const noexcept = 0;
48
55 virtual xtd::size get_hash_code(const type_t& obj) const noexcept = 0;
57 };
58 }
59 }
60}
Defines methods to support the comparison of objects for equality.
Definition iequality_comparer.h:34
virtual xtd::size get_hash_code(const type_t &obj) const noexcept=0
Returns a hash code for the specified object.
virtual bool equals(const type_t &x, const type_t &y) const noexcept=0
Determines whether the specified objects are equal.
#define interface_
This keyword is use to represent an interface.
Definition interface.h:58
size_t size
Represents a size of any object in bytes.
Definition size.h:23
@ y
The Y key.
@ x
The X key.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10