commit | b1cd0dce8ed2fff2b781dfb432777db7de5f3f80 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Nov 02 17:56:11 2021 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Nov 02 17:56:11 2021 -0600 |
tree | ee7c1133edc79045d2f738a8fe7da522f436434a | |
parent | 540f19b6fe0de39312bc3f881be16e76dd902c33 [diff] |
[map] Add INVALID_KEY and INVALID_VALUE
diff --git a/src/hb-map.hh b/src/hb-map.hh index 311e612..bb4a0eb 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh
@@ -39,6 +39,9 @@ V vINVALID = hb_is_pointer (V) ? 0 : std::is_signed<V>::value ? hb_int_min (V) : (V) -1> struct hb_hashmap_t { + static constexpr K INVALID_KEY = kINVALID; + static constexpr V INVALID_VALUE = vINVALID; + hb_hashmap_t () { init (); } ~hb_hashmap_t () { fini (); }