diff options
| author | Tyge Løvset <[email protected]> | 2021-10-28 12:04:23 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-10-28 14:55:17 +0200 |
| commit | 583a0ac357dba6b8c35db7450e8286469516a3b9 (patch) | |
| tree | 59f9eab4810dcdb0f7afbf239a387ec4fa7e6861 /benchmarks/shootout2_cmap.cpp | |
| parent | 7d2fe0a5232b8deef52ec2e786c9dac999ef2234 (diff) | |
| download | STC-modified-583a0ac357dba6b8c35db7450e8286469516a3b9.tar.gz STC-modified-583a0ac357dba6b8c35db7450e8286469516a3b9.zip | |
updated shootouts, fixed some warnings
Diffstat (limited to 'benchmarks/shootout2_cmap.cpp')
| -rw-r--r-- | benchmarks/shootout2_cmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/shootout2_cmap.cpp b/benchmarks/shootout2_cmap.cpp index 1704079d..58a31009 100644 --- a/benchmarks/shootout2_cmap.cpp +++ b/benchmarks/shootout2_cmap.cpp @@ -58,7 +58,7 @@ stc64_t rng; #define UMAP_SETUP(X, Key, Value) std::unordered_map<Key, Value> map; map.max_load_factor(max_load_factor)
#define UMAP_PUT(X, key, val) (map[key] = val)
-#define UMAP_EMPLACE(X, key, val) (*map.emplace(key, val).first).second
+#define UMAP_EMPLACE(X, key, val) map.emplace(key, val).first->second
#define UMAP_FIND(X, key) (map.find(key) != map.end())
#define UMAP_ERASE(X, key) map.erase(key)
#define UMAP_FOR(X, i) for (auto i: map)
|
