#include using namespace std; template class MyStack: list { public: void push(const T& y) { MyStack::push_front(y); } T top( ) { return MyStack::front( ); } void pop( ) { MyStack::pop_front( ); } bool empty( ) { return MyStack::begin() == MyStack::end(); } };