From 0c92672a2b667b703ccc6d11496c468707a047e6 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 22 May 2024 23:14:06 -0500 Subject: [PATCH] [ox/std] Add IntegerRange_c (synced from 08f958fbacc566e8f4416c40cb12e10f6fc45547) --- src/ox/std/concepts.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ox/std/concepts.hpp b/src/ox/std/concepts.hpp index ccc993bd1..746876856 100644 --- a/src/ox/std/concepts.hpp +++ b/src/ox/std/concepts.hpp @@ -8,6 +8,7 @@ #pragma once +#include "bit.hpp" #include "typetraits.hpp" namespace ox { @@ -29,4 +30,6 @@ concept OxString_c = isOxString_v; template concept Integral_c = ox::is_integral_v; +template +concept IntegerRange_c = ox::is_integer_v && ox::MaxValue >= max; }