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

Add QMap constructor which supports comparison class

    XMLWordPrintable

Details

    Description

      QMap uses the key class' operator<() to order its contents. This means that in order to use a different ordering to what a class' operator<() provides, one needs to subclass the key class and reimplement operator<().

      However, it would be nice if QMap supported specifying an arbitrary comparison class to be used for ordering, like the STL map does.

      Attachments

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

        Activity

          People

            stormols Marius Storm-Olsen
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes