added a small functionality of removeAll
authorFilippo Gioachin <gioachin@illinois.edu>
Sat, 16 Apr 2005 08:09:05 +0000 (08:09 +0000)
committerFilippo Gioachin <gioachin@illinois.edu>
Sat, 16 Apr 2005 08:09:05 +0000 (08:09 +0000)
src/util/cklists.h

index 981a17da5a91ff574dabec3206e49eedc4953644..6a23f93544e5af654541f27f52ad74f6904d256c 100644 (file)
@@ -268,6 +268,9 @@ class CkVec : private CkSTLHelper<T> {
         block[i] = block[i+1];
       len--;
     }
+    void removeAll() {
+      len = 0;
+    }
     void insertAtEnd(const T &elt) {insert(length(),elt);}
 
 //STL-compatability: