summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/shootout_hashmaps.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-08 23:13:32 +0100
committerTyge Løvset <[email protected]>2022-01-08 23:13:32 +0100
commit63562f5135243ac2a2553b4e7360c59e86686d6f (patch)
tree439a3853a6bfded32a3031b577457bfba470f1a7 /benchmarks/shootout_hashmaps.cpp
parent0a9910eee6582e6ee414071a0d5e7062448989cf (diff)
downloadSTC-modified-63562f5135243ac2a2553b4e7360c59e86686d6f.tar.gz
STC-modified-63562f5135243ac2a2553b4e7360c59e86686d6f.zip
Moved utf8 from cregex.h to separate file. Splitted csview.h into another file strings.h.
Diffstat (limited to 'benchmarks/shootout_hashmaps.cpp')
-rw-r--r--benchmarks/shootout_hashmaps.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/shootout_hashmaps.cpp b/benchmarks/shootout_hashmaps.cpp
index 6439c548..5307da0c 100644
--- a/benchmarks/shootout_hashmaps.cpp
+++ b/benchmarks/shootout_hashmaps.cpp
@@ -38,8 +38,8 @@ size_t seed;
#define CMAP_SETUP(X, Key, Value) cmap_##X map = cmap_##X##_init() \
; cmap_##X##_max_load_factor(&map, max_load_factor/100.0f)
-#define CMAP_PUT(X, key, val) cmap_##X##_emplace_or_assign(&map, key, val).ref->second
-#define CMAP_EMPLACE(X, key, val) cmap_##X##_emplace(&map, key, val).ref->second
+#define CMAP_PUT(X, key, val) cmap_##X##_insert_or_assign(&map, key, val).ref->second
+#define CMAP_EMPLACE(X, key, val) cmap_##X##_insert(&map, key, val).ref->second
#define CMAP_ERASE(X, key) cmap_##X##_erase(&map, key)
#define CMAP_FIND(X, key) cmap_##X##_contains(&map, key)
#define CMAP_FOR(X, i) c_foreach (i, cmap_##X, map)