add queue isEmpty()
This commit is contained in:
@ -55,3 +55,7 @@ void Queue::print() const {
|
||||
// std::cout << std::endl;
|
||||
}
|
||||
*/
|
||||
|
||||
bool Queue::isEmpty() const {
|
||||
return *this->tail == this->head;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user