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

(synced from 180cac5cc6)
This commit is contained in:
2022-02-01 20:06:10 -06:00
parent 7f78eeb281
commit 9e68e90758
+4
View File
@@ -21,6 +21,10 @@ namespace std {
template<typename T>
constexpr bool is_union_v = __is_union(T);
constexpr bool is_constant_evaluated() noexcept {
return __builtin_is_constant_evaluated();
}
}
#endif