[libcxx-commits] [libcxx] [libc++][NFC] Simplify the implementation of reserve() and shrink_to_fit() (PR #113453)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Oct 23 11:00:24 PDT 2024
================
@@ -3349,70 +3371,48 @@ inline _LIBCPP_CONSTEXPR_SINCE_CXX20 void basic_string<_CharT, _Traits, _Allocat
if (__target_capacity == capacity())
return;
----------------
ldionne wrote:
We should add `_LIBCPP_ASSERT_INTERNAL(__is_long())` here, and then the `if (!__is_long())` below can go away.
https://github.com/llvm/llvm-project/pull/113453
More information about the libcxx-commits
mailing list