1

add queue isEmpty()

This commit is contained in:
churl
2022-06-05 16:50:37 +02:00
parent b37bb45070
commit b07d78d842
2 changed files with 5 additions and 0 deletions

View File

@ -55,3 +55,7 @@ void Queue::print() const {
// std::cout << std::endl;
}
*/
bool Queue::isEmpty() const {
return *this->tail == this->head;
}

View File

@ -37,6 +37,7 @@ public:
Chain* dequeue();
void remove(Chain* item);
// void print() const;
bool isEmpty() const;
};
#endif