projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
743fdd9
)
[map] Implement operator[] for get()ting
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 29 May 2018 23:37:44 +0000
(16:37 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 29 May 2018 23:37:44 +0000
(16:37 -0700)
src/hb-map-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-map-private.hh
b/src/hb-map-private.hh
index
723dde4
..
6aaf4c4
100644
(file)
--- 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: