mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
[map] Implement operator[] for get()ting
This commit is contained in:
1 parent
743fdd9c61
commit
e94be200bd
1 file changed
+3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user