Details
-
Suggestion
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
None
Description
for associative containers, Q_FOREACH iterates over the values. but sometimes it is necessary to iterate over the keys or the whole entries:
QMap<K, V> map;
Q_FOREACH_KEY(const K &key, map) ...;
Q_FOREACH_ENTRY(const K &key, const V &value, map) ...;
Attachments
For Gerrit Dashboard: QTBUG-4615 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
398300,6 | Associative containers: add a way to obtain a key/value range | dev | qt/qtbase | Status: MERGED | +2 | 0 |