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 cf5a8b4 commit 3d88874Copy full SHA for 3d88874
libcxx/include/string
@@ -1876,6 +1876,7 @@ private:
1876
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __set_long_cap(size_type __s) _NOEXCEPT {
1877
__r_.first().__l.__cap_ = __s / __endian_factor;
1878
__r_.first().__l.__is_long_ = true;
1879
+ _LIBCPP_ASSERT_INTERNAL(__s == __get_long_cap(), "Size must be __endian_factor aligned.");
1880
}
1881
1882
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 size_type __get_long_cap() const _NOEXCEPT {
0 commit comments