summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/cmap_benchmark3.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-02-21 19:44:29 +0100
committerTyge Løvset <[email protected]>2021-02-21 19:44:29 +0100
commit9ad1de563150b5819a17ceb07e5bb1a83f39f2b4 (patch)
tree6b1e6fbf4dab50917b85642663c4a496199db1c6 /benchmarks/cmap_benchmark3.cpp
parentc609469b3eac08cc369f30a54cc737a3d9cadc3b (diff)
downloadSTC-modified-9ad1de563150b5819a17ceb07e5bb1a83f39f2b4.tar.gz
STC-modified-9ad1de563150b5819a17ceb07e5bb1a83f39f2b4.zip
Renamed emplace_put() to emplace_or_assign(). May add put() as alias to insert_or_assign().
Diffstat (limited to 'benchmarks/cmap_benchmark3.cpp')
-rw-r--r--benchmarks/cmap_benchmark3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/cmap_benchmark3.cpp b/benchmarks/cmap_benchmark3.cpp
index fa7edabd..13905a3f 100644
--- a/benchmarks/cmap_benchmark3.cpp
+++ b/benchmarks/cmap_benchmark3.cpp
@@ -35,7 +35,7 @@ stc64_t rng;
#define CMAP_SETUP(X, Key, Value) cmap_##X map = cmap_##X##_init() \
; cmap_##X##_set_load_factors(&map, 0.0, max_load_factor)
-#define CMAP_PUT(X, key, val) cmap_##X##_emplace_put(&map, key, val).first->second
+#define CMAP_PUT(X, key, val) cmap_##X##_emplace_or_assign(&map, key, val).first->second
#define CMAP_EMPLACE(X, key, val) cmap_##X##_emplace(&map, key, val).first->second
#define CMAP_ERASE(X, key) cmap_##X##_erase(&map, key)
#define CMAP_FIND(X, key) (cmap_##X##_find(map, key) != NULL)