KHolidays Library
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> >
54 typedef typename S::reverse_iterator iterator;
55 typedef typename S::const_reverse_iterator const_iterator;
61 stack (
unsigned int n) : seq_ (n)
67 operator [] (
unsigned int i)
74 operator [] (
unsigned int i)
const
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> >
115 slice (
const S& stack,
116 unsigned int range) : stack_ (stack),
123 operator [] (
unsigned int i)
const
125 return stack_[range_ - i];
135 #line 1 "[Bison:b4_percent_define_default]"
142 #endif // not BISON_STACK_HH[]dnl
Present a slice of the top of a stack.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:00 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.