| 282 | |
| 283 | template <class... Args> |
| 284 | TValue* Add(TKey const& key, Args... args) |
| 285 | { |
| 286 | auto hash = (uint32_t)SparseHashMapHash(key); |
| 287 | auto nextIndex = (uint16_t)Keys.size(); |
| 288 | LookupTable.set(hash, nextIndex); |
| 289 | new (Keys.add_uninitialized()) TKey(key); |
| 290 | return new (Values.add_uninitialized()) TValue(std::forward<Args>(args)...); |
| 291 | } |
| 292 | }; |
| 293 | |
| 294 | END_SE() |
nothing calls this directly
no test coverage detected