--- parser3/src/include/pa_array.h 2005/11/25 12:21:34 1.67 +++ parser3/src/include/pa_array.h 2006/11/03 17:32:30 1.69 @@ -8,7 +8,7 @@ #ifndef PA_ARRAY_H #define PA_ARRAY_H -static const char * const IDENT_ARRAY_Y="$Date: 2005/11/25 12:21:34 $"; +static const char * const IDENT_ARRAY_Y="$Date: 2006/11/03 17:32:30 $"; // includes @@ -61,7 +61,7 @@ public: return false; // max(limit) size_t m=reverse? - offset + offset+1 :count-offset; if(!m) return false; @@ -165,6 +165,14 @@ public: } /// iterate over all elements + template void for_each(bool (*callback)(T, I), I info) const { + T *last=felements+fused; + for(T *current=felements; current void for_each_ref(void (*callback)(T&, I), I info) { T *last=felements+fused; for(T *current=felements; current