Implementation of a bounded stack abstraction in C++.