That requires including qcontainerfwd.h to the headers, so that we could get access to QtPrivate::MaxAllocSize. The max_size() methods are added for compatibility with stl. The logic for most of the views is similar. The only exception is QAnyStringView, because its character size may vary, depending on the contained data. The maxSize() methods are the static equivalents of max_size(). QASV does not have it for the reasons mentioned above. [ChangeLog][QtCore] Added max_size() to all string-view types. Amends 7ce6920aacfcba485cd8017e01c6aeb324292e75. Found in 6.8 API review. Change-Id: I467c7d64ec3d92eb424eb5b94a39ec3d45d63d1f Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 2382bfb5b03f6f03a31981dc416121cf556b962a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%