From 57de677b5b00e0aa75772d6b5fe6347edbe03ffd Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 16 Apr 2022 17:12:14 +0200 Subject: Added at_mut() to some containers. Added put_r() to cmap, csmap as alias for emplace_or_assign(). --- docs/csmap_api.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/csmap_api.md') diff --git a/docs/csmap_api.md b/docs/csmap_api.md index e6f5515c..0b23878b 100644 --- a/docs/csmap_api.md +++ b/docs/csmap_api.md @@ -49,7 +49,8 @@ void csmap_X_drop(csmap_X* self); size_t csmap_X_size(csmap_X map); bool csmap_X_empty(csmap_X map); -const csmap_X_mapped* csmap_X_at(const csmap_X* self, i_keyraw rkey); // rkey must be in map. +const csmap_X_mapped* csmap_X_at(const csmap_X* self, i_keyraw rkey); // rkey must be in map +csmap_X_mapped* csmap_X_at_mut(csmap_X* self, i_keyraw rkey); // mutable at const csmap_X_value* csmap_X_get(const csmap_X* self, i_keyraw rkey); // return NULL if not found csmap_X_value* csmap_X_get_mut(csmap_X* self, i_keyraw rkey); // mutable get bool csmap_X_contains(const csmap_X* self, i_keyraw rkey); -- cgit v1.2.3