xtd 0.2.0
lesser.hpp
Go to the documentation of this file.
1
4#pragma once
5#define __XTD_CORE_INTERNAL__
6#include "../../../internal/__polymorphic_lesser.hpp"
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 }
61 };
62 }
63 }
64 }
65}
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 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