00001 #ifndef __QUEUE_H 00002 #define __QUEUE_H 00003 00004 #include "my_list.h" 00005 00006 template<class T> 00007 class CQueue : public CList<T> 00008 { 00009 public: 00010 bool empty() { return (CList<T>::front == NULL); } 00011 void push(const T& t) { push_back(t); } 00012 }; 00013 #endif
1.4.2