[libcxx-commits] [libcxx] [libc++] Refactor how we do amortized growth (PR #171117)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 23 04:40:30 PST 2026


================
@@ -2285,6 +2285,25 @@ private:
     return __long(__buffer, __capacity);
   }
 
+  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __long
+  __allocate_long_buffer_for_amortized_growth(size_type __required_size) {
----------------
philnik777 wrote:

I continue to disagree that this is a better API, but I don't care enough to block other improvements on this.

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


More information about the libcxx-commits mailing list