[libcxx-commits] [libcxx] [libc++] Implement P2830R10: Standardized Constexpr Type Ordering (PR #216616)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 17 10:25:52 PDT 2026


================
@@ -48,4 +48,10 @@ export namespace std {
     using std::__cpo::weak_order;
   } // namespace __cpo
 
+#if _LIBCPP_STD_VER >= 26 && __has_builtin(__builtin_type_order)
+  // [compare.type], type ordering
+  using std::type_order;
+  using std::type_order_v;
----------------
Zingam wrote:

No change requested: In `type_traits.inc` it looks like we are exporting the `_v`-variable but not the struct. I don't know why.

https://github.com/llvm/llvm-project/pull/216616


More information about the libcxx-commits mailing list