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

QtConcurrent should use universal references

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 6.0
    • None
    • Core: QtConcurrent
    • None
    • 13
    • Qt6_Foundation_Sprint 18, Qt6_Foundation_Sprint 19

    Description

      QtConcurrent currently takes its container argument as reference or const reference:

      QFuture<void> QtConcurrent::map(Sequence &sequence, MapFunctor function)

      It would be better to take an universal reference instead

      QFuture<void> QtConcurrent::map(Sequence &&sequence, MapFunctor function)

      This would allow some additional use cases when working with temporary container adaptors:

      QtConcurrent::map(db->range<XId, XMail, XPassword, XSalt>(), functor);

      Attachments

        Issue Links

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

          Activity

            People

              sonakur Sona Kurazyan
              ultra Ace Map
              Maurice Kalinowski Maurice Kalinowski
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes