Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit03c61e4c635aed6941c7841e85417def036434b6 (patch)
Author
 Angel Dimitriev <angel_dimitriev@abv.bg>
2022-05-05 07:31:19 -0400
Committer
 GitHub <noreply@github.com>
2022-05-05 07:31:19 -0400
Files5472d416683981907e42c3603faa8e35a4ff863e
Object-oriented_programming_FMI-03c61e4c635aed6941c7841e85417def036434b6.tar
Object-oriented_programming_FMI-03c61e4c635aed6941c7841e85417def036434b6.tar.gz
Object-oriented_programming_FMI-03c61e4c635aed6941c7841e85417def036434b6.zip
Parent49a2f20a77cad180019cc84cc02843e86009e0f6 (diff)
Update Queue.hpp
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 10/Examples/Queue.hpp4
diff --git a/Sem. 10/Examples/Queue.hpp b/Sem. 10/Examples/Queue.hpp
index 76e4cf2..eaf790b 100644
--- a/Sem. 10/Examples/Queue.hpp
+++ b/Sem. 10/Examples/Queue.hpp
@@ -57,7 +57,7 @@ void MyQueue<T>::push(T&& obj)
if (size == capacity)
resize();
- data[put] = obj; //move operator =
+ data[put] = std::move(obj); //move operator =
(++put) %= capacity;
size++;
}
@@ -147,4 +147,4 @@ template <typename T>
MyQueue<T>::~MyQueue()
{
free();
-} \ No newline at end of file
+}