Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <class T>
- const T& QueueList<T>::deQueue()
- {
- if (head_ == nullptr)
- {
- throw QueueUnderflow();
- }
- Node* t = head_;
- head_ = head_->next_;
- delete t;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement