From 63562f5135243ac2a2553b4e7360c59e86686d6f Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 8 Jan 2022 23:13:32 +0100 Subject: Moved utf8 from cregex.h to separate file. Splitted csview.h into another file strings.h. --- benchmarks/shootout_hashmaps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmarks/shootout_hashmaps.cpp') 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) -- cgit v1.2.3