1#ifndef SANISIZER_COMPARISONS_HPP
2#define SANISIZER_COMPARISONS_HPP
22template<
typename Left_,
typename Right_>
24 return static_cast<typename std::make_unsigned<Left_>::type
>(l) ==
static_cast<typename std::make_unsigned<Right_>::type
>(r);
36template<
typename Left_,
typename Right_>
38 return static_cast<typename std::make_unsigned<Left_>::type
>(l) <
static_cast<typename std::make_unsigned<Right_>::type
>(r);
50template<
typename Left_,
typename Right_>
64template<
typename Left_,
typename Right_>
66 return static_cast<typename std::make_unsigned<Left_>::type
>(l) >
static_cast<typename std::make_unsigned<Right_>::type
>(r);
78template<
typename Left_,
typename Right_>
Sanitize sizes to avoid integer overflow.
Definition arithmetic.hpp:14
constexpr bool is_less_than(Left_ l, Right_ r)
Definition comparisons.hpp:37
constexpr bool is_greater_than_or_equal(Left_ l, Right_ r)
Definition comparisons.hpp:51
constexpr bool is_greater_than(Left_ l, Right_ r)
Definition comparisons.hpp:65
constexpr bool is_less_than_or_equal(Left_ l, Right_ r)
Definition comparisons.hpp:79
constexpr bool is_equal(Left_ l, Right_ r)
Definition comparisons.hpp:23