*
* \author John Levon
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef LIMITED_STACK_H
#include <deque>
+
+namespace lyx {
+
/**
* limited_stack - A stack of limited size.
*
typedef typename container_type::const_iterator const_iterator;
/// limit is the maximum size of the stack
- limited_stack(size_type limit = 100) {
- limit_ = limit;
- }
+ limited_stack(size_type limit = 100) : limit_(limit) {}
/// Return the top element.
value_type & top() {
template <typename T>
class limited_stack<T*>;
+
+} // namespace lyx
+
#endif // LIMITED_STACK_H