diff options
| author | Tyge Løvset <[email protected]> | 2023-02-01 22:44:21 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-02 21:24:43 +0100 |
| commit | 473a13c1c15b8c1e1edc79cff074c0dcf490fc1b (patch) | |
| tree | 65ee8bcf91cb794e6de11341dfdb03f6779f4d53 /docs/csmap_api.md | |
| parent | ad9a74ebe39cd3371c5cf3a46b6c0286c0667914 (diff) | |
| download | STC-modified-473a13c1c15b8c1e1edc79cff074c0dcf490fc1b.tar.gz STC-modified-473a13c1c15b8c1e1edc79cff074c0dcf490fc1b.zip | |
Fixed to allow int64_t sized maps. (defaults to 32-bit).
Diffstat (limited to 'docs/csmap_api.md')
| -rw-r--r-- | docs/csmap_api.md | 10 |
1 files changed, 5 insertions, 5 deletions
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); |
