sandbox/include/queue.h

16 lines
351 B
C
Raw Normal View History

2017-11-09 14:10:20 +00:00
#ifndef __ODS_QUEUE__
#define __ODS_QUEUE__
// Dequeue represents a collection of elements to which we can add elements
// and remove the next element.
template<typename T>
class Dequeue {
public:
virtual void add_first(T);
virtual void add_last(T);
virtual T remove_first(void);
virtual T remove_last(void);
virtual bool empty(void);
};
#endif