Ref counting
[iotcloud.git] / version2 / src / C / vector.h
index e1378c900e0c447b7b70413f3130024eddc6e4f8..5ca954be06926f5eecc61b4fef1a0e147f5b8baa 100644 (file)
@@ -30,16 +30,17 @@ public:
                fldsize--;
        }
 
-       void remove(type t) {
+       bool remove(type t) {
                for (uint i = 0; i < fldsize; i++) {
                        if (array[i] == t) {
                                for (i++; i < fldsize; i++) {
                                        array[i - 1] = array[i];
                                }
                                fldsize--;
-                               break;
+                               return true;
                        }
                }
+               return false;
        }
 
        void removeIndex(uint i) {