[set-digest] Add operator []. Also auto-initialize
diff --git a/src/hb-set-digest.hh b/src/hb-set-digest.hh
index 5681641..b2994c9 100644
--- a/src/hb-set-digest.hh
+++ b/src/hb-set-digest.hh
@@ -129,11 +129,14 @@
   bool may_have (hb_codepoint_t g) const
   { return mask & mask_for (g); }
 
+  bool operator [] (hb_codepoint_t g) const
+  { return may_have (g); }
+
   private:
 
   static mask_t mask_for (hb_codepoint_t g)
   { return ((mask_t) 1) << ((g >> shift) & (mask_bits - 1)); }
-  mask_t mask;
+  mask_t mask = 0;
 };
 
 template <typename head_t, typename tail_t>
@@ -188,6 +191,9 @@
     return head.may_have (g) && tail.may_have (g);
   }
 
+  bool operator [] (hb_codepoint_t g) const
+  { return may_have (g); }
+
   private:
   head_t head;
   tail_t tail;