template <class T, class Container = deque<T> > class stack;
| member type | definition | notes |
|---|---|---|
| value_type | The first template parameter (T) | Type of the elements |
| container_type | The second template parameter (Container) | Type of the underlying container |
| size_type | an unsigned integral type | usually the same as size_t |
| member type | definition | notes |
|---|---|---|
| value_type | The first template parameter (T) | Type of the elements |
| container_type | The second template parameter (Container) | Type of the underlying container |
| reference | container_type::reference | usually, value_type& |
| const_reference | container_type::const_reference | usually, const value_type& |
| size_type | an unsigned integral type | usually, the same as size_t |