[ox/std] Add IntegerRange_c
This commit is contained in:
parent
a651d45a2f
commit
08f958fbac
3
deps/ox/src/ox/std/concepts.hpp
vendored
3
deps/ox/src/ox/std/concepts.hpp
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user