[map] Add INVALID_KEY and INVALID_VALUE
This commit is contained in:
parent
540f19b6fe
commit
b1cd0dce8e
|
@ -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…
Reference in New Issue