Diff for /parser3/src/include/pa_array.h between versions 1.60 and 1.61

version 1.60, 2003/11/07 13:59:21 version 1.61, 2003/11/20 16:32:12
Line 233  public: Line 233  public:
         }          }
   
 };  };
 /*  
 /** Nonconst array iterator, usage:  
         @code  
         // Array<T> a;  
         for(Array_iterator<T> i(a); i.has_next(); ) {  
                 T& element=i.next();  
                 ...  
         }         
         @endcode  
 * /  
 template<typename T> class Array_modifing_iterator {  
   
         Array<T>& farray;  
         T *fcurrent;  
         T *flast;  
   
 public:  
   
         Array_modifing_iterator(Array<T>& aarray): farray(aarray) {  
                 fcurrent=farray.felements;  
                 flast=farray.felements+farray.count();  
         }  
   
         /// there are still elements  
         bool has_next() {  
                 return fcurrent<flast;  
         }  
   
         /// quickly extracts next Array element  
         T& next() {  
                 return *(fcurrent++);  
         }  
   
 };  
 */  
 #endif  #endif

Removed from v.1.60  
changed lines
  Added in v.1.61


E-mail: