[map] Add INVALID_KEY and INVALID_VALUE

pull/3282/head
Behdad Esfahbod 3 years ago
parent 540f19b6fe
commit b1cd0dce8e
  1. 3
      src/hb-map.hh

@ -39,6 +39,9 @@ template <typename K, typename V,
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 (); }

Loading…
Cancel
Save