35 #ifndef BISON_STACK_HH 36 # define BISON_STACK_HH 42 #line 1 "[Bison:b4_percent_define_default]" 48 template <
class T,
class S = std::deque<T> >
88 pop (
unsigned int n = 1)
101 inline const_iterator
begin ()
const {
return seq_.rbegin (); }
102 inline const_iterator
end ()
const {
return seq_.rend (); }
110 template <
class T,
class S = stack<T> >
116 unsigned int range) : stack_ (stack),
125 return stack_[range_ - i];
135 #line 1 "[Bison:b4_percent_define_default]" 142 #endif // not BISON_STACK_HH[]dnl
unsigned int height() const
T & operator[](unsigned int i)
slice(const S &stack, unsigned int range)
Present a slice of the top of a stack.
const_iterator end() const
void pop(unsigned int n=1)
const_iterator begin() const
S::reverse_iterator iterator
S::const_reverse_iterator const_iterator