Using the template class List with proper copy control, implement the template class Queue
as specified below:
#pragma once
#include “List.h”
#include
template
class Queue
{
private:
List fElements;
public:
bool isEmpty() const;
int size() const;
void enqueue( const T& aElement );
void dequeue();
const T& top() const;
// stack indexer
const T& operator[]( size_t aIndex ) const;
// stack iterators
Iterator begin() const;
Iterator end() const;
Iterator rbegin() const;
Iterator rend() const;
};
That is, Queue is a queue container type that can grow in size on demand.
Complete the implementation of the template class Queue.

Place New Order
It's Free, Fast & Safe

"Looking for a Similar Assignment? Order now and Get a Discount!