xtd 0.2.0
Loading...
Searching...
No Matches
comparer.hpp
Go to the documentation of this file.
1
4#pragma once
5#define __XTD_CORE_INTERNAL__
6#include "../../../internal/__polymorphic_comparer.hpp"
7#undef __XTD_CORE_INTERNAL__
8
10namespace xtd {
12 namespace collections {
14 namespace generic {
16 namespace helpers {
30 template<class type_t = void>
31 struct comparer {
33
36 using first_argument_type = type_t;
38 using second_argument_type = type_t;
42
44
57 return __polymorphic_comparer__<first_argument_type, typename std::is_polymorphic<first_argument_type>::type> {}(x, y);
58 }
60 };
61 }
62 }
63 }
64}
int32_t int32
Represents a 32-bit signed integer.
Definition int32.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
Implements a function object for compare data.
Definition comparer.hpp:31
type_t second_argument_type
Represents the second argument type.
Definition comparer.hpp:38
type_t first_argument_type
Represents the first argument type.
Definition comparer.hpp:36
int32 result_type
Represents the result type.
Definition comparer.hpp:40
constexpr result_type operator()(const first_argument_type &x, const second_argument_type &y) const
Compares two entities and returns a value indicating whether one is less than, equal to,...
Definition comparer.hpp:56