5#define __XTD_CORE_INTERNAL__
7#undef __XTD_CORE_INTERNAL__
31 template<
class type_t =
void>
68 if (comparer_)
return comparer_->compare(
x,
y);
69 return __polymorphic_comparer__<first_argument_type, typename std::is_polymorphic<first_argument_type>::type> {}(
x,
y);
Contains polymorphic_comparer struct.
Exposes a method that compares two objects.
Definition icomparer.hpp:30
Contains xtd::collections::generic::icomparer <type_t> interface.
std::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
constexpr auto operator()(const first_argument_type &x, const second_argument_type &y) const -> result_type
Compares two entities and returns a value indicating whether one is less than, equal to,...
Definition comparer.hpp:67
type_t second_argument_type
Represents the second argument type.
Definition comparer.hpp:39
comparer(const xtd::collections::generic::icomparer< type_t > &comparer)
Initializes a new instance of the comparer with specified comparer.
Definition comparer.hpp:51
type_t first_argument_type
Represents the first argument type.
Definition comparer.hpp:37
int32 result_type
Represents the result type.
Definition comparer.hpp:41
comparer()=default
Initializes a new instance of the comparer.