[ox/std] Add std::is_constant_evaluated()

This commit is contained in:
Gary Talent 2022-02-01 20:06:10 -06:00
parent 0d76129a0e
commit 180cac5cc6

View File

@ -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