|
|
|
@ -10,12 +10,12 @@ constexpr auto all = std::numeric_limits<std::streamsize>::max(); |
|
|
|
|
|
|
|
|
|
namespace math |
|
|
|
|
{ |
|
|
|
|
template<auto lb, typeof(lb) ub> [[maybe_unused]] |
|
|
|
|
constexpr auto is_between(typeof(lb) x) -> bool { return (ub > x) && (x > lb); } |
|
|
|
|
template<auto lb, decltype(lb) ub> [[maybe_unused]] |
|
|
|
|
constexpr auto is_between(decltype(lb) x) -> bool { return (ub > x) && (x > lb); } |
|
|
|
|
template<auto lb> [[maybe_unused]] |
|
|
|
|
constexpr auto is_larger(typeof(lb) x) -> bool { return (x > lb); } |
|
|
|
|
constexpr auto is_larger(decltype(lb) x) -> bool { return (x > lb); } |
|
|
|
|
template<auto ub> [[maybe_unused]] |
|
|
|
|
constexpr auto is_smaller(typeof(ub) x) -> bool { return (ub > x); } |
|
|
|
|
constexpr auto is_smaller(decltype(ub) x) -> bool { return (ub > x); } |
|
|
|
|
template<typename T> [[maybe_unused]] |
|
|
|
|
auto numerical_suffix(T value) -> std::string |
|
|
|
|
{ |
|
|
|
|