xtd 0.2.0
Loading...
Searching...
No Matches
iequality_comparer.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../../interface.hpp"
6#include "../../size.hpp"
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.hpp: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.hpp:58
size_t size
Represents a size of any object in bytes.
Definition size.hpp: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.hpp:10