From 58fcd34c60910888b008202c1e26dc98a9ceca31 Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Wed, 20 Jan 2021 13:09:42 +0100 Subject: Update csmap_api.md --- docs/csmap_api.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/csmap_api.md b/docs/csmap_api.md index db876ad6..3060811e 100644 --- a/docs/csmap_api.md +++ b/docs/csmap_api.md @@ -33,7 +33,7 @@ be replaced by `my` in all of the following documentation. `using_csmap_strkey()` and `using_csmap_strval()` are special macros defined by `using_csmap()`. The macro `using_csmap_str()` is a shorthand for ```c -using_csmap(str, cstr_t, cstr_t, cstr_compare_raw, cstr_del, cstr_from, ...) +using_csmap(str, cstr, cstr, cstr_compare_raw, cstr_del, cstr_from, ...) ``` ## Header file @@ -57,17 +57,17 @@ size_t csmap_X_size(csmap_X m); void csmap_X_push_n(csmap_X* self, const csmap_X_rawvalue_t arr[], size_t size); -csmap_X_result_t csmap_X_emplace(csmap_X* self, RawKey rkey, RawMapped rmapped); // no change if rkey in map -csmap_X_result_t csmap_X_insert(csmap_X* self, csmap_X_rawvalue_t rval); // same +csmap_X_result_t csmap_X_emplace(csmap_X* self, RawKey rkey, RawMapped rmapped); // no change if rkey in map +csmap_X_result_t csmap_X_insert(csmap_X* self, csmap_X_rawvalue_t rval); // same, just different param csmap_X_result_t csmap_X_insert_or_assign(csmap_X* self, RawKey rkey, RawMapped rmapped); -csmap_X_result_t csmap_X_put(csmap_X* self, RawKey rkey, RawMapped rmapped); // same as insert_or_assign() -csmap_X_result_t csmap_X_put_mapped(csmap_X* self, RawKey rkey, Mapped mapped); // same -csmap_X_mapped_t* csmap_X_at(const csmap_X* self, RawKey rkey); // rkey must be in map. +csmap_X_result_t csmap_X_put(csmap_X* self, RawKey rkey, RawMapped rmapped); // same as insert_or_assign() +csmap_X_result_t csmap_X_put_mapped(csmap_X* self, RawKey rkey, Mapped mapped); // same, different param +csmap_X_mapped_t* csmap_X_at(const csmap_X* self, RawKey rkey); // rkey must be in map. size_t csmap_X_erase(csmap_X* self, RawKey rkey); csmap_X_iter_t csmap_X_erase_at(csmap_X* self, csmap_X_iter_t pos); -csmap_X_value_t* csmap_X_find(const csmap_X* self, RawKey rkey); // NULL if not found +csmap_X_value_t* csmap_X_find(const csmap_X* self, RawKey rkey); // NULL if not found csmap_X_value_t* csmap_X_find_it(const csmap_X* self, RawKey rkey, csmap_X_iter_t* out); bool csmap_X_contains(const csmap_X* self, RawKey rkey); -- cgit v1.2.3