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

QSet is missing range-erase()

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • None
    • 5
    • Foundation PM Prioritized

      QSet, unlike all other Qt containers, and unlike std::unordered_map, lacks the erase(it, it) function ("range-erase"). Currently, the only option to erase a range of items in QSet is to loop over erase(it), which, however, has algorithmic complexity problems (see QTBUG-103328).

      Workaround: use removeIf() and hope for QTBUG-103328 to be fixed.

      Acceptance criteria: Moral equivalent of acceptance criteria for QTBUG-106175.

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

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes