xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
collections
generic
empty_comparer.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
icomparer.hpp
"
6
#include "
../../object.hpp
"
7
9
namespace
xtd
{
11
namespace
collections
{
13
namespace
generic
{
29
template
<
typename
type_t>
30
class
empty_comparer
:
public
object
,
public
icomparer
<type_t> {
31
public
:
33
36
empty_comparer
() =
default
;
38
40
46
[[nodiscard]]
auto
compare
(
const
type_t&
x
,
const
type_t&
y
)
const
->
int32
override
{
return
0;}
48
};
49
}
50
}
51
}
xtd::collections::generic::empty_comparer::empty_comparer
empty_comparer()=default
Initializes a new instance of the xtd::collections::generic::comparer <type_t> class.
xtd::collections::generic::empty_comparer::compare
auto compare(const type_t &x, const type_t &y) const -> int32 override
Compares two entities and returns a value indicating whether one is less than, equal to,...
Definition
empty_comparer.hpp:46
xtd::collections::generic::icomparer
Exposes a method that compares two objects.
Definition
icomparer.hpp:30
xtd::object::object
object()=default
Create a new instance of the ultimate base class object.
icomparer.hpp
Contains xtd::collections::generic::icomparer <type_t> interface.
xtd::int32
std::int32_t int32
Represents a 32-bit signed integer.
Definition
int32.hpp:25
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
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
object.hpp
Contains xtd::object class.
Generated on
for xtd by
Gammasoft
. All rights reserved.