Question: Construct a C++ implementation of a static deque class using the header file below. Write test program to test every member functions implemented in the
Construct a C++ implementation of a static deque class using the header file below. Write test program to test every member functions implemented in the class. Thoroughly document the code below and your test program with code comments and through a searate summary report. Indicate in your test results display the name of the functions or data that are being tested.
//////////////////// deque.h
ifndef _DEQUE_H_ #define _DEQUE_H_ #include
// precondition: deque is not empty // postcondition: element at front of deque has been removed void pop_front(); // precondition: deque is not empty // postcondition: element at back of deque has been removed void pop_back(); // postcondition: number of elements in deque has been returned size_type size() const; // postcondition: whether deque is empty has been returned bool empty() const; // postcondition: whether deque is full has been returned bool full() const; // postcondition: returned whether 2 deques are equal // equal is defined as: the deques have the same number of elements & // corresponding elements are equal template
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
