From b1cd0dce8ed2fff2b781dfb432777db7de5f3f80 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 2 Nov 2021 17:56:11 -0600 Subject: [PATCH] [map] Add INVALID_KEY and INVALID_VALUE --- src/hb-map.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-map.hh b/src/hb-map.hh index 311e612a8..bb4a0eb5d 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -39,6 +39,9 @@ template ::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 (); }