Everything seems to be working, except when I serve from the front of the queue when the front of the queue at is the maxqueue length.
Here is my code for the serve_front function, disregarding error checking because that is correct
if (front + 1 == maxqueue)
front = 0;
else
front = front + 1;
When I'm calling it in my testing code, here's the call
case 's':
if (test_deque.serve_front() == underflow)
cout << "Deque empty";
else
cout << "Served front of queue";
break;