diff options
| author | Ivan Solovev <ivan.solovev@qt.io> | 2024-08-28 17:05:54 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-08-30 14:50:45 +0000 |
| commit | 2382bfb5b03f6f03a31981dc416121cf556b962a (patch) | |
| tree | 19a8faa6f5db099fb19b5464e2a55220a767f7b6 /src/sql/doc/snippets/code | |
| parent | 9ecb429986cc547af448f90589694f786ef5f139 (diff) | |
Add max_size() and maxSize() to view types
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.
Pick-to: 6.8
Change-Id: I467c7d64ec3d92eb424eb5b94a39ec3d45d63d1f
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
