X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/1c7ec959b1dddfbf594d5b76572e4b473c055be2..d065cb3853cf5763a035abbb58f6c5f598af7879:/data/stack.hh diff --git a/data/stack.hh b/data/stack.hh index ab1049c1..317a0612 100644 --- a/data/stack.hh +++ b/data/stack.hh @@ -1,6 +1,6 @@ # C++ skeleton for Bison -# Copyright (C) 2002-2012 Free Software Foundation, Inc. +# Copyright (C) 2002-2013 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,11 +16,11 @@ # along with this program. If not, see . m4_pushdef([b4_copyright_years], - [2002-2012]) + [2002-2013]) b4_output_begin([b4_dir_prefix[]stack.hh]) b4_copyright([Stack handling for Bison parsers in C++], - [2002-2012])[ + [2002-2013])[ /** ** \file ]b4_dir_prefix[stack.hh @@ -77,6 +77,12 @@ b4_copyright([Stack handling for Bison parsers in C++], seq_.pop_front (); } + void + clear () + { + seq_.clear (); + } + inline unsigned int height () const @@ -88,6 +94,8 @@ b4_copyright([Stack handling for Bison parsers in C++], inline const_iterator end () const { return seq_.rend (); } private: + stack (const stack&); + stack& operator= (const stack&); S seq_; };