From 473a13c1c15b8c1e1edc79cff074c0dcf490fc1b Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 1 Feb 2023 22:44:21 +0100 Subject: Fixed to allow int64_t sized maps. (defaults to 32-bit). --- docs/csmap_api.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/csmap_api.md') diff --git a/docs/csmap_api.md b/docs/csmap_api.md index d0a57bdb..b090f737 100644 --- a/docs/csmap_api.md +++ b/docs/csmap_api.md @@ -42,8 +42,8 @@ See the c++ class [std::map](https://en.cppreference.com/w/cpp/container/map) fo ```c csmap_X csmap_X_init(void); -csset_X csmap_X_with_capacity(intptr_t cap); -bool csmap_X_reserve(csmap_X* self, intptr_t cap); +csset_X csmap_X_with_capacity(int64_t cap); +bool csmap_X_reserve(csmap_X* self, int64_t cap); void csmap_X_shrink_to_fit(csmap_X* self); csmap_X csmap_X_clone(csmap_x map); @@ -51,9 +51,9 @@ void csmap_X_clear(csmap_X* self); void csmap_X_copy(csmap_X* self, const csmap_X* other); void csmap_X_drop(csmap_X* self); // destructor -intptr_t csmap_X_size(const csmap_X* self); bool csmap_X_empty(const csmap_X* self); -bool csmap_X_capacity(const csmap_X* self); +int64_t csmap_X_size(const csmap_X* self); +int64_t csmap_X_capacity(const csmap_X* self); 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 @@ -81,7 +81,7 @@ csmap_X_iter csmap_X_erase_range(csmap_X* self, csmap_X_iter it1, csmap csmap_X_iter csmap_X_begin(const csmap_X* self); csmap_X_iter csmap_X_end(const csmap_X* self); void csmap_X_next(csmap_X_iter* iter); -csmap_X_iter csmap_X_advance(csmap_X_iter it, size_t n); +csmap_X_iter csmap_X_advance(csmap_X_iter it, uint64_t n); csmap_X_value csmap_X_value_clone(csmap_X_value val); csmap_X_raw csmap_X_value_toraw(csmap_X_value* pval); -- cgit v1.2.3