VCCC  2024.05
VisualCamp Common C++ library
less.hpp
Go to the documentation of this file.
1 //
2 // Created by YongGyu Lee on 2024/01/03.
3 //
4 
5 #ifndef VCCC_FUNCTIONAL_LESS_HPP
6 #define VCCC_FUNCTIONAL_LESS_HPP
7 
8 #include <type_traits>
9 #include <utility>
10 
13 
14 namespace vccc {
15 namespace ranges {
16 
19 
20 struct less {
21  using is_transparent = std::true_type;
22 
24  constexpr bool operator()(T&& t, U&& u) const
25  noexcept(noexcept(bool(std::forward<T>(t) < std::forward<U>(u))))
26  {
27  using namespace vccc::rel_ops;
28  return std::forward<T>(t) < std::forward<U>(u);
29  }
30 };
31 
32 
34 
35 } // namespace ranges
36 } // namespace vccc
37 
38 #endif // VCCC_FUNCTIONAL_LESS_HPP
Definition: cxx20_rel_ops.hpp:17
Definition: directory.h:12
constexpr VCCC_INLINE_OR_STATIC detail::element_niebloid< 1 > value
Definition: key_value.hpp:35
Definition: less.hpp:20
std::true_type is_transparent
Definition: less.hpp:21
constexpr bool operator()(T &&t, U &&u) const noexcept(noexcept(bool(std::forward< T >(t)< std::forward< U >(u))))
Definition: less.hpp:24