38 #ifndef YY_YY_USERS_AKIM_SRC_LRDE_VAUCANSON2_LIB_VCSN_RAT_STACK_HH_INCLUDED
39 # define YY_YY_USERS_AKIM_SRC_LRDE_VAUCANSON2_LIB_VCSN_RAT_STACK_HH_INCLUDED
43 #line 11 "/Users/akim/src/lrde/vaucanson2/lib/vcsn/rat/parse.yy" // stack.hh:133
44 namespace vcsn {
namespace rat {
45 #line 46 "/Users/akim/src/lrde/vaucanson2/lib/vcsn/rat/stack.hh" // stack.hh:133
46 template <
class T,
class S = std::vector<T> >
91 pop (
unsigned int n = 1)
104 typename S::size_type
114 return seq_.rbegin ();
132 template <
class T,
class S = stack<T> >
154 #line 11 "/Users/akim/src/lrde/vaucanson2/lib/vcsn/rat/parse.yy" // stack.hh:133
156 #line 157 "/Users/akim/src/lrde/vaucanson2/lib/vcsn/rat/stack.hh" // stack.hh:133
158 #endif // !YY_YY_USERS_AKIM_SRC_LRDE_VAUCANSON2_LIB_VCSN_RAT_STACK_HH_INCLUDED
T & operator[](unsigned int i)
void push(T &t)
Steal the contents of t.
const_iterator end() const
S seq_
The wrapped container.
const_iterator begin() const
const T & operator[](unsigned int i) const
S::const_reverse_iterator const_iterator
slice(const S &stack, unsigned int range)
stack & operator=(const stack &)
void pop(unsigned int n=1)
S::reverse_iterator iterator
S::size_type size() const
Present a slice of the top of a stack.