Definition
An instance S of the parameterized data type b_stack<E> is a stack (see section Stacks) of bounded size.
#include < LEDA/b_stack.h >
Creation
| b_stack<E> | S(int n) | creates an instance S of type b_stack<E> that can hold up to n elements. S is initialized with the empty stack. |
Operations
Implementation
Bounded stacks are implemented by C++vectors. All operations take time O(1). The space requirement is O(n).
© Copyright 1995-2002, Algorithmic Solutions Software GmbH. All rights reserved.
2002-10-16