X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=cpp%2Fcore%2Fsrc%2Fzxing%2Fcommon%2FCounted.h;fp=cpp%2Fcore%2Fsrc%2Fzxing%2Fcommon%2FCounted.h;h=306ed6cdd58ed2dc92305fc95420fca32c6aa219;hb=30f0e5e9eeab4a85a378809bfa7007b128694138;hp=f79b5d8653c273c7a71f2acad86770c3b579f802;hpb=0e1b3e36eef8c2956d012196e2a49e088b6e150a;p=zxing.git diff --git a/cpp/core/src/zxing/common/Counted.h b/cpp/core/src/zxing/common/Counted.h index f79b5d86..306ed6cd 100644 --- a/cpp/core/src/zxing/common/Counted.h +++ b/cpp/core/src/zxing/common/Counted.h @@ -193,6 +193,10 @@ public: return x == 0 ? object_ != 0 : true; } + bool empty() const { + return object_ == 0; + } + template friend std::ostream& operator<<(std::ostream &out, Ref& ref); };