Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-4615

add Q_FOREACH_KEY & Q_FOREACH_ENTRY

    XMLWordPrintable

Details

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            buddenha Oswald Buddenhagen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes