Johannes Altmanninger
1333fe21d0
Fix clang warning regarding useless braces when using HashSet
...
clang/clangd complain about the new HashSet type:
hash_map.cc:98:20: warning: braces around scalar initializer [-Wbraced-scalar-init]
set.insert({10});
^~~~
The argument to HashSet<int>::insert is just an int, so we don't
need braces. Only an actual HashMap would need braces to construct
a HashItem object.
2022-08-28 15:23:29 +02:00
Maxime Coste
89cd3c52eb
Add HashSet implemented as HashMap with void value type
2022-08-05 20:06:34 +10:00
Maxime Coste
9fb7d90449
Change HashMap not to support multiple identical keys by default
...
We do not seem to have any uses for this remaining, and this is
better opt-in with MultiHashMap
2022-08-05 19:20:00 +10:00
Maxime Coste
7b29192c24
Fix use of removed std::random_shuffle
2019-01-20 22:59:28 +11:00
Maxime Coste
eeacb8b5a8
Use the _str and _sv string literals more often
2018-01-18 09:00:54 +11:00
Maxime Coste
b81500c0e4
Use microseconds instead of milliseconds for built-in profiling
2017-06-07 20:06:47 +01:00
Maxime Coste
ba02498576
Expand a bit the hash map profiling code
2017-03-07 14:01:01 +00:00
Maxime Coste
f3fdc24383
Remove temporary stats code from HashMap
2017-03-07 01:15:41 +00:00
Maxime Coste
f0ae0b8410
Replace IdMap with HashMap
2017-03-07 01:12:37 +00:00
Maxime Coste
6373338c50
Replace uses of UnorderedMap with HashMap
2017-03-07 01:03:26 +00:00
Maxime Coste
420373475e
Introduce a custom HashMap implementation along with a quick benchmark
2017-03-06 22:25:08 +00:00