[libcxx-commits] [libcxx] [libc++] Optimize vector::erase (PR #213916)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 24 07:36:43 PDT 2026


================
@@ -206,6 +207,8 @@ class __vector_layout {
   [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI const_pointer __capacity_ptr() const _NOEXCEPT;
   [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI bool __invariants() const _NOEXCEPT;
 
+  _LIBCPP_CONSTEXPR_SINCE_CXX20 void __offset_size(difference_type __offset) _NOEXCEPT;
----------------
ldionne wrote:

I think this is dead code now.

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


More information about the libcxx-commits mailing list