提交 e94be200 编写于 作者: B Behdad Esfahbod

[map] Implement operator[] for get()ting

上级 743fdd9c
...@@ -151,6 +151,9 @@ struct hb_map_t ...@@ -151,6 +151,9 @@ struct hb_map_t
return get (key) != INVALID; 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; static const hb_codepoint_t INVALID = HB_MAP_VALUE_INVALID;
protected: protected:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册