diff options
| author | Isak Fyksen <isak.fyksen@qt.io> | 2023-11-10 16:59:04 +0100 |
|---|---|---|
| committer | Isak Fyksen <isak.fyksen@qt.io> | 2024-12-05 17:54:39 +0000 |
| commit | 056e78f456fb050b7fc28d0dbd8ebd25d9eb291f (patch) | |
| tree | b2bc8d1831ad4cca57c250c1a16f97e8cfe3817e /src/corelib/thread/qthread.cpp | |
| parent | 387633a6069a5e0e9b976971691b1b82725b6132 (diff) | |
Add iterator, begin() and end() for QDomNodeList
Implement iterator for QDomNodeList, based on iterator from
QVersionNumber.
Also, extract node-iteration from createList() to forEachNode(), and
have both createList() and new noexceptLength() use this for appending
to the QList and counting nodes without allocating them
respectively. noexceptLength() is needed for noexcept
[c?r?]begin/[c?r?]end methods.
Add tests using begin(), end(), rbegin(), rend(), and range-based
for-loop.
std::reverse_iterator::operator-> does not work with ArrowProxy in C++17.
This issue will be addressed in QTBUG-131933.
[ChangeLog][QtXml][QDomNodeList] Added iterator support.
Fixes: QTBUG-115076
Change-Id: I94570bda3bda00ab7938e9ff0472a42e38425838
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
0 files changed, 0 insertions, 0 deletions
