[ox/std] Add IntegerRange_c

This commit is contained in:
Gary Talent 2024-05-22 23:14:06 -05:00
parent a651d45a2f
commit 08f958fbac

View File

@ -8,6 +8,7 @@
#pragma once
#include "bit.hpp"
#include "typetraits.hpp"
namespace ox {
@ -29,4 +30,6 @@ concept OxString_c = isOxString_v<T>;
template<typename T>
concept Integral_c = ox::is_integral_v<T>;
template<typename T, size_t max>
concept IntegerRange_c = ox::is_integer_v<T> && ox::MaxValue<T> >= max;
}