--- parser3/src/include/pa_array.h 2015/10/26 01:21:55 1.83 +++ parser3/src/include/pa_array.h 2023/09/26 20:49:06 1.87 @@ -1,14 +1,14 @@ /** @file Parser: Array & Array_iterator classes decls. - Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_ARRAY_H #define PA_ARRAY_H -#define IDENT_PA_ARRAY_H "$Id: pa_array.h,v 1.83 2015/10/26 01:21:55 moko Exp $" +#define IDENT_PA_ARRAY_H "$Id: pa_array.h,v 1.87 2023/09/26 20:49:06 moko Exp $" // includes @@ -169,6 +169,10 @@ public: inline T operator [](size_t index) const { return get(index); } + inline void clear() { + fused=0; + } + /// iterate over all elements template void for_each(void (*callback)(T, I), I info) const { T *last=felements+fused;