edits
authorbdemsky <bdemsky@uci.edu>
Fri, 19 Jan 2018 02:25:04 +0000 (18:25 -0800)
committerbdemsky <bdemsky@uci.edu>
Fri, 19 Jan 2018 02:25:04 +0000 (18:25 -0800)
version2/src/C/vector.h

index 7b49d4e..8ce18fd 100644 (file)
@@ -66,6 +66,10 @@ public:
                return size;
        }
 
+       bool isEmpty() const {
+               return size == 0;
+       }
+
        ~Vector() {
                ourfree(array);
        }