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

Need a non-shared QHash

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.x
    • None

      Now that QHash competes favourably with its STL counterpart again, we're missing a non-shared version of it. So far, we were able to use the STL containers for containers that weren't shared:

      • QList → std::vector / QVarLengthArray
      • QMapstd::map{{}}
      • Q5Hashstd::unordered_map
      • Q6Hash → ???

      QFlatMap is a candidate, but that has different performance characteristics, in particular, it's not well-suited for mixed inserts and removals.

      What we really need, though, is a, say, QHashTable that's not implicitly shared, but otherwise like QHash.

       

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

            thiago Thiago Macieira
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes