xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
collections
generic
iequality_comparer.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../../interface.hpp
"
6
#include "
../../usize.hpp
"
7
9
namespace
xtd
{
11
namespace
collections
{
13
namespace
generic
{
33
template
<
typename
type_t>
34
class
iequality_comparer
interface_
{
35
public
:
37
47
[[nodiscard]]
virtual
auto
equals
(
const
type_t&
x
,
const
type_t&
y
)
const
noexcept
->
bool
= 0;
48
55
[[nodiscard]]
virtual
auto
get_hash_code
(
const
type_t& obj)
const
noexcept
->
xtd::usize
= 0;
57
};
58
}
59
}
60
}
xtd::collections::generic::iequality_comparer
Defines methods to support the comparison of objects for equality.
Definition
iequality_comparer.hpp:34
xtd::collections::generic::iequality_comparer::equals
virtual auto equals(const type_t &x, const type_t &y) const noexcept -> bool=0
Determines whether the specified objects are equal.
xtd::collections::generic::iequality_comparer::get_hash_code
virtual auto get_hash_code(const type_t &obj) const noexcept -> xtd::usize=0
Returns a hash code for the specified object.
interface_
#define interface_
This keyword is use to represent an interface.
Definition
interface.hpp:58
xtd::usize
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition
usize.hpp:22
xtd::console_key::y
@ y
The Y key.
Definition
console_key.hpp:136
xtd::console_key::x
@ x
The X key.
Definition
console_key.hpp:134
interface.hpp
Contains xtd::interface interface.
xtd::collections::generic
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition
comparer.hpp:16
xtd::collections
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition
any_pair.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
usize.hpp
Contains xtd::usize type.
Generated on
for xtd by
Gammasoft
. All rights reserved.