Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
None
-
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
- relates to
-
QTBUG-82646 Investigate and improve the implementation of the QtConcurrent::map|mapped|mappedReduce() etc. with modern C++ pattern
- Closed