Megatech


is_even

#include <concepts>

template <std::integral Type>
constexpr bool is_odd(Type x) {
  return x & 1;
}

template <std::integral Type>
constexpr bool is_even(Type x) {
  return !is_odd(x);
}