Queue - void DeQueue container.RemoveFirst const T&...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/*************** THE Queue CLASS ***************/ #ifndef __QUEUE__ #define __QUEUE__ #include "SList.h" template <class T> class Queue { public: bool IsEmpty() const { return container.IsEmpty(); } void EnQueue(const T& item) { container.AddLast(item); }
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: void DeQueue() { container.RemoveFirst(); } const T& Front() const { return container.ShowFirst(); } private: SList<t> container; }; #endif...
View Full Document

This note was uploaded on 04/07/2008 for the course CS 181 taught by Professor Satya during the Fall '08 term at Stevens.

Ask a homework question - tutors are online