We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d9e567 commit 80f6b05Copy full SHA for 80f6b05
libcxx/include/string
@@ -2279,6 +2279,7 @@ private:
2279
}
2280
enum { __alignment = 8 };
2281
static _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 size_type __recommend(size_type __s) _NOEXCEPT {
2282
+ _LIBCPP_ASSERT_INTERNAL(__s >= __min_cap, "recommend is called for small string capacity");
2283
const size_type __boundary = sizeof(value_type) < __alignment ? __alignment / sizeof(value_type) : __endian_factor;
2284
size_type __guess = __align_it<__boundary>(__s + 1) - 1;
2285
_LIBCPP_ASSERT_INTERNAL(__guess >= __s, "recommendation is below the requested size");
0 commit comments