diff options
| author | Tyge Løvset <[email protected]> | 2022-04-09 00:14:50 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-09 00:14:50 +0200 |
| commit | 1a4223837d4e34a085f00e323759ee5f9cd81bd3 (patch) | |
| tree | 9be8cb543c9043fa885e511b86595c91ea1f4fc5 /docs/csmap_api.md | |
| parent | 03065ed6ef93f88003cd6754ca4d50ba20a76ebd (diff) | |
| download | STC-modified-1a4223837d4e34a085f00e323759ee5f9cd81bd3.tar.gz STC-modified-1a4223837d4e34a085f00e323759ee5f9cd81bd3.zip | |
Universally added a put() function to all containers.
Diffstat (limited to 'docs/csmap_api.md')
| -rw-r--r-- | docs/csmap_api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/csmap_api.md b/docs/csmap_api.md index 964046b1..e6f5515c 100644 --- a/docs/csmap_api.md +++ b/docs/csmap_api.md @@ -62,7 +62,7 @@ csmap_X_value* csmap_X_back(const csmap_X* self); csmap_X_result csmap_X_insert(csmap_X* self, i_key key, i_val mapped); // no change if key in map csmap_X_result csmap_X_insert_or_assign(csmap_X* self, i_key key, i_val mapped); // always update mapped -csmap_X_result csmap_X_put(csmap_X* self, i_key key, i_val mapped); // same as insert_or_assign() +csmap_X_result csmap_X_put(csmap_X* self, i_key key, i_val mapped); // alias for insert_or_assign() csmap_X_result csmap_X_emplace(csmap_X* self, i_keyraw rkey, i_valraw rmapped); // no change if rkey in map csmap_X_result csmap_X_emplace_or_assign(csmap_X* self, i_keyraw rkey, i_valraw rmapped); // always update rmapped |
