summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qqueue.cpp
diff options
context:
space:
mode:
authorTim Blechmann <tim.blechmann@qt.io>2025-05-10 21:07:30 +0200
committerTim Blechmann <tim.blechmann@qt.io>2025-05-26 08:59:48 +0000
commitf90dd023cf8ec464e113ed4ef068383b5d8f13a3 (patch)
tree7698579f4c4b30e98ef92a11fc94b366b7b51eb4 /src/corelib/tools/qqueue.cpp
parentbed78605e7611252a784e7501806518edba32f0e (diff)
QQueue: add enqueue signature to enqueue elements by moving
Using the QQueue shim one could only use `enqueue` by copying. Adding a signature to copy to allow elements to be moved. Change-Id: Idfbabb6fc01265285f128c5657ccb4050e902720 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qqueue.cpp')
-rw-r--r--src/corelib/tools/qqueue.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qqueue.cpp b/src/corelib/tools/qqueue.cpp
index 74ab49b3bf9..a0ebf7e32ff 100644
--- a/src/corelib/tools/qqueue.cpp
+++ b/src/corelib/tools/qqueue.cpp
@@ -48,6 +48,7 @@
/*!
\fn template <class T> void QQueue<T>::enqueue(const T& t)
+ \fn template <class T> void QQueue<T>::enqueue(T&& t)
Adds value \a t to the tail of the queue.