coroutines truly are cursed

This commit is contained in:
2021-11-11 20:12:50 +01:00
parent 1848bb5139
commit 01049019fd
25 changed files with 202 additions and 92 deletions
+14
View File
@@ -246,6 +246,20 @@ public:
_size++;
return insertedElement;
}
// takes all elements from other and move-inserts them into
// this, clearing other in the process
void moveElements(List& other){
tail->prev->next = other.root;
other.root->prev = tail->prev;
_size += other._size;
deallocateNode(tail);
tail = other.tail;
other._size = 0;
other.root = nullptr;
other.tail = nullptr;
markIteratorDirty();
other.markIteratorDirty();
}
template<typename... args>
constexpr reference emplace(args... arguments)
{