![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
c06p312.hGo to the documentation of this file.00001 00014 template <typename T, typename Container = deque <T> > 00015 class stack 00016 { 00017 public: 00021 explicit stack(const Container& cnt = Container()); 00022 00028 bool empty() const; 00029 00036 size_type size() const; 00037 00041 T &top(); 00042 00047 void pop(); 00048 00053 void push(const T& x); 00054 00055 }; // end std::stack |