diff options
| author | Tyge Løvset <[email protected]> | 2022-04-09 20:58:11 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-09 20:58:11 +0200 |
| commit | 17e620fe3b3c42134a1139245c6590816c1ca6bf (patch) | |
| tree | 9d5a35ac4ec66c83e4ca927c21e8013b13b1275d /include/stc/cmap.h | |
| parent | 9e1ea5d14fb1835eb1ad1e45c8e8f02c9072ca57 (diff) | |
| download | STC-modified-17e620fe3b3c42134a1139245c6590816c1ca6bf.tar.gz STC-modified-17e620fe3b3c42134a1139245c6590816c1ca6bf.zip | |
- Switched from .._put() to .._push() as the "generic" method to add element to any container.
- Changed clist_X_insert()/emplace() to clist_X_insert_at()/emplace_at() to make it consistent with cvec/cdeq.
- Updated documentation.
Diffstat (limited to 'include/stc/cmap.h')
| -rw-r--r-- | include/stc/cmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cmap.h b/include/stc/cmap.h index 6fb3974d..3ad53301 100644 --- a/include/stc/cmap.h +++ b/include/stc/cmap.h @@ -171,7 +171,7 @@ _cx_memb(_insert)(_cx_self* self, i_key _key _i_MAP_ONLY(, i_val _mapped)) { }
STC_INLINE _cx_result
-_cx_memb(_put)(_cx_self* self, i_key _key _i_MAP_ONLY(, i_val _mapped)) {
+_cx_memb(_push)(_cx_self* self, i_key _key _i_MAP_ONLY(, i_val _mapped)) {
return _i_SET_ONLY( _cx_memb(_insert)(self, _key) )
_i_MAP_ONLY( _cx_memb(_insert_or_assign)(self, _key, _mapped) );
}
|
