X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/97ae878ec376149ba49bd08c1bd6590dd5224671..b167e7ba0dd66dca7888782363fc97a3e282f8ef:/data/stack.hh?ds=sidebyside diff --git a/data/stack.hh b/data/stack.hh index 037c212f..aa64d63d 100644 --- a/data/stack.hh +++ b/data/stack.hh @@ -72,6 +72,12 @@ m4_define([b4_stack_define], seq_.pop_back (); } + void + clear () + { + seq_.clear (); + } + inline typename S::size_type size () const @@ -94,6 +100,8 @@ m4_define([b4_stack_define], } private: + stack (const stack&); + stack& operator= (const stack&); /// The wrapped container. S seq_; };