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 2a97f2d commit 9de412dCopy full SHA for 9de412d
libcxx/include/string
@@ -1210,13 +1210,7 @@ public:
1210
}
1211
# endif // _LIBCPP_CXX03_LANG
1212
1213
- inline _LIBCPP_CONSTEXPR_SINCE_CXX20 ~basic_string() {
1214
- // We do not use __reset_internal_buffer() here to avoid the overhead of
1215
- // resetting the object.
1216
- __annotate_delete();
1217
- if (__is_long())
1218
- __alloc_traits::deallocate(__alloc_, __get_long_pointer(), __get_long_cap());
1219
- }
+ inline _LIBCPP_CONSTEXPR_SINCE_CXX20 ~basic_string() { __deallocate_buffer_if_long(); }
1220
1221
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 operator __self_view() const _NOEXCEPT {
1222
return __self_view(typename __self_view::__assume_valid(), data(), size());
0 commit comments