mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Merge branch 'fix-memory' of https://github.com/polarvoid/C-Plus-Plus into fix-memory
This commit is contained in:
commit
24d3b9c25e
@ -83,7 +83,7 @@ class CircularLinkedList {
|
||||
* @brief Move constructor for CircularLinkedList
|
||||
* @param source rvalue reference to a Circular Linked List
|
||||
*/
|
||||
CircularLinkedList(CircularLinkedList&& source) {
|
||||
CircularLinkedList(CircularLinkedList&& source) noexcept {
|
||||
root = source.root;
|
||||
end = source.end;
|
||||
source.root = nullptr;
|
||||
@ -108,7 +108,7 @@ class CircularLinkedList {
|
||||
* @param other rvalue reference to a Circular Linked List
|
||||
* @returns Reference to CircularLinkedList
|
||||
*/
|
||||
CircularLinkedList& operator=(CircularLinkedList&& other) {
|
||||
CircularLinkedList& operator=(CircularLinkedList&& other) noexcept {
|
||||
root = other.root;
|
||||
end = other.end;
|
||||
other.root = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user