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

QtConcurrent should use universal references

XMLWordPrintable

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

      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);

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes