template <typename Type>
class Single_list {
public:
int size() const;
bool empty() const;
Type front() const;
Type back() const;
Single_node<Type> *head() const;
Single_node<Type> *tail() const;
int count( Type const & ) const;
void push_front( Type const & );
void push_back( Type const & );
Type pop
}
class Queue{
private:
Single_list<Type> list;
public:
bool empty() const;
Type front() const;
void push(Type const &);
Type pop();
}
In [ ]: