Advertisement
Neveles

Untitled

Mar 29th, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. template <class T>
  2. void QueueList<T>::print(std::ostream& out)
  3. {
  4.   Node* p = head_;
  5.   while (p != nullptr)
  6.   {
  7.     out << p->value_ << ' ';
  8.     p = p->next_;
  9.   }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement