Began removing the excessive use of exceptions in the 1D readers by drawing
[zxing.git] / cpp / core / src / zxing / common / Counted.h
index f79b5d8..306ed6c 100644 (file)
@@ -193,6 +193,10 @@ public:
     return x == 0 ? object_ != 0 : true;
   }
 
+  bool empty() const {
+    return object_ == 0;
+  }
+
   template<class Y>
   friend std::ostream& operator<<(std::ostream &out, Ref<Y>& ref);
 };