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

Need a non-shared QHash

    XMLWordPrintable

Details

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

    Description

      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.

       

      Attachments

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

        Activity

          People

            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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes