[map] Actually use k/v invalid types for declaration!

This commit is contained in:
Behdad Esfahbod 2022-01-10 14:29:36 -07:00
parent a45a630539
commit 6f559346ac
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ template <typename K, typename V,
v_invalid_t vINVALID = hb_is_pointer (V) ? 0 : std::is_signed<V>::value ? hb_int_min (V) : (V) -1> v_invalid_t vINVALID = hb_is_pointer (V) ? 0 : std::is_signed<V>::value ? hb_int_min (V) : (V) -1>
struct hb_hashmap_t struct hb_hashmap_t
{ {
static constexpr K INVALID_KEY = kINVALID; static constexpr k_invalid_t INVALID_KEY = kINVALID;
static constexpr V INVALID_VALUE = vINVALID; static constexpr v_invalid_t INVALID_VALUE = vINVALID;
hb_hashmap_t () { init (); } hb_hashmap_t () { init (); }
~hb_hashmap_t () { fini (); } ~hb_hashmap_t () { fini (); }