diff --git a/src/hb-map-private.hh b/src/hb-map-private.hh index 723dde4f4..6aaf4c417 100644 --- a/src/hb-map-private.hh +++ b/src/hb-map-private.hh @@ -151,6 +151,9 @@ struct hb_map_t return get (key) != INVALID; } + inline hb_codepoint_t operator [] (unsigned int key) const + { return get (key); } + static const hb_codepoint_t INVALID = HB_MAP_VALUE_INVALID; protected: