| 254 | PagedArray<TValue, TAllocator> Values; |
| 255 | |
| 256 | uint16_t FindIndex(TKey const& key) const |
| 257 | { |
| 258 | auto hash = (uint32_t)SparseHashMapHash(key); |
| 259 | auto keyIndex = LookupTable.get(hash); |
| 260 | if (keyIndex && *keyIndex != InvalidIndex && Keys[*keyIndex] == key) { |
| 261 | return *keyIndex; |
| 262 | } else { |
| 263 | return InvalidIndex; |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | TValue const* Find(TKey const& key) const |
| 268 | { |