...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::stack
// In header: <boost/compute/container/stack.hpp> template<typename T> class stack { public: // types typedef vector< T > container_type; typedef container_type::size_type size_type; typedef container_type::value_type value_type; // construct/copy/destruct stack(); stack(const stack< T > &); stack< T > & operator=(const stack< T > &); ~stack(); // public member functions bool empty() const; size_type size() const; value_type top() const; void push(const T &); void pop(); };