You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
597 B
C++

// -*- c++ -*-
#pragma once
#define less __less_base
#include_next <xstddef>
#undef less
namespace std
{
// https://timsong-cpp.github.io/cppwp/n4659/comparisons.less
template <typename T = void> struct less
{
constexpr bool operator()(const T& x, const T& y) const { return x < y; }
};
template<> struct less<void>
{
template <typename T, typename U>
constexpr auto operator()(T&& t, U&& u) const
-> decltype(static_cast<T&&>(t) < static_cast<U&&>(u))
{
return static_cast<T&&>(t) < static_cast<U&&>(u);
}
using is_transparent = void;
};
}