[libcxx-commits] [libcxx] [libcxx] adds a size-based representation for `vector`'s unstable ABI (PR #155330)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 6 07:08:18 PST 2026


================
@@ -130,15 +146,14 @@ class vector {
   //
   // [vector.cons], construct/copy/destroy
   //
-  _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI vector()
-      _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value) {}
+  _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI vector() = default;
----------------
ldionne wrote:

I'd like to keep this conditional `noexcept` on the public API, it's important to be explicit about what we provide in this API (even more than in some other APIs since this is a container, and one of the most widely used).

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


More information about the libcxx-commits mailing list