xtd 0.2.0
lesser.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 {
37 template<class type_t = void>
38 struct lesser {
40
43 using first_argument_type = type_t;
45 using second_argument_type = type_t;
47 using result_type = bool;
49
51
57 constexpr result_type operator()(const first_argument_type& lhs, const second_argument_type& rhs) const {
58 return __polymorphic_lesser__<first_argument_type, typename std::is_polymorphic<first_argument_type>::type> {}(lhs, rhs);
59 }
60
61 };
62 }
63 }
64 }
65}
Contains polymorphic_lesser struct.
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 lesser.hpp:38
type_t first_argument_type
Represents the first argument type.
Definition lesser.hpp:43
type_t second_argument_type
Represents the second argument type.
Definition lesser.hpp:45
bool result_type
Represents the result type.
Definition lesser.hpp:47
constexpr result_type operator()(const first_argument_type &lhs, const second_argument_type &rhs) const
Serves as a hash function for a specified key with a particular type (type_t).
Definition lesser.hpp:57