[ox/std] Add std::is_constant_evaluated()
This commit is contained in:
parent
0d76129a0e
commit
180cac5cc6
4
deps/ox/src/ox/std/typetraits.hpp
vendored
4
deps/ox/src/ox/std/typetraits.hpp
vendored
@ -21,6 +21,10 @@ namespace std {
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
constexpr bool is_union_v = __is_union(T);
|
constexpr bool is_union_v = __is_union(T);
|
||||||
|
|
||||||
|
constexpr bool is_constant_evaluated() noexcept {
|
||||||
|
return __builtin_is_constant_evaluated();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user