Diff for /parser3/src/include/pa_array.h between versions 1.78 and 1.80

version 1.78, 2009/04/30 04:40:30 version 1.80, 2010/11/05 21:56:49
Line 95  public: Line 95  public:
         /// append to array          /// append to array
         inline Array& operator+=(T src) {          inline Array& operator+=(T src) {
                 if(is_full())                  if(is_full())
                         expand(fallocated>0?2:3); // 3 is PAF default, confirmed by tests                          expand(fallocated>0? 2+fallocated/32 : 3); // 3 is PAF default, confirmed by tests
   
                 felements[fused++]=src;                  felements[fused++]=src;
   
Line 161  public: Line 161  public:
                 felements[index]=element;                  felements[index]=element;
         }          }
   
           /// remove index-element
           inline void remove(size_t index) {
                   assert(index<count());
                   if (index<--fused)
                           memmove(felements+index+1, felements+index, (fused-index) * sizeof(T));
           }
   
         inline T operator [](size_t index) const { return get(index); }          inline T operator [](size_t index) const { return get(index); }
   
         /// iterate over all elements          /// iterate over all elements

Removed from v.1.78  
changed lines
  Added in v.1.80


E-mail: