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) ...;