Advertisement
Neveles

Untitled

Mar 29th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. template <class T>
  2. const T& QueueList<T>::deQueue()
  3. {
  4.   if (head_ == nullptr)
  5.   {
  6.     throw QueueUnderflow();
  7.   }
  8.   Node* t = head_;
  9.   head_ = head_->next_;
  10.   delete t;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement