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

[Documentation] QHash is documented to not change order of items in the hash on erase()

XMLWordPrintable

      But it might. When an item is freed, if there was previously another element inserted that would have otherwise ended up in that slot it will have moved to the next 'free' slot. So, when an element is erase()d we move the second element into its slot. This item may happen to be an item that has been visited earlier!

      Example found here:
      https://doc.qt.io/qt-6/qhash.html#erase

        For Gerrit Dashboard: QTBUG-105720
        # Subject Branch Project Status CR V

            cnn Qt Core & Network
            manordheim MÃ¥rten Nordheim
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change