xtd 0.2.0
comparer.hpp
Go to the documentation of this file.
1
4#pragma once
5#define __XTD_CORE_INTERNAL__
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 }
59
60 };
61 }
62 }
63 }
64}
Contains polymorphic_comparer struct.
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
@ y
The Y key.
Definition console_key.hpp:136
@ x
The X key.
Definition console_key.hpp:134
The xtd::collections::generic::helpers namespace contains helpers for generic collections,...
Definition allocator.hpp:14
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:16
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
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