diff options
| author | Tyge Løvset <[email protected]> | 2021-02-21 19:44:29 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-02-21 19:44:29 +0100 |
| commit | 9ad1de563150b5819a17ceb07e5bb1a83f39f2b4 (patch) | |
| tree | 6b1e6fbf4dab50917b85642663c4a496199db1c6 /examples/mapmap.c | |
| parent | c609469b3eac08cc369f30a54cc737a3d9cadc3b (diff) | |
| download | STC-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 'examples/mapmap.c')
| -rw-r--r-- | examples/mapmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/mapmap.c b/examples/mapmap.c index c55104c9..5a5996f6 100644 --- a/examples/mapmap.c +++ b/examples/mapmap.c @@ -16,7 +16,7 @@ int main(void) { cmap_str_emplace(&cmap_cfg_insert(&config, cstr_from("group"), init).first->second, "proj3", "Oil");
cmap_str_emplace(&cmap_cfg_insert(&config, cstr_from("admin"), init).first->second, "employees", "2302");
- cmap_str_emplace_put(&cmap_cfg_insert(&config, cstr_from("group"), init).first->second, "proj2", "Wind"); // Update
+ cmap_str_emplace_or_assign(&cmap_cfg_insert(&config, cstr_from("group"), init).first->second, "proj2", "Wind"); // Update
c_foreach (i, cmap_cfg, config)
c_foreach (j, cmap_str, i.ref->second)
|
