diff options
| author | Tyge Løvset <[email protected]> | 2023-02-15 15:40:08 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-15 15:40:08 +0100 |
| commit | 290055ad96c22fd9dfb539d0217e45cd2f1cdb91 (patch) | |
| tree | ce6d1398ca4a08ddcb42653ad46c0ab76655ee47 /docs/csset_api.md | |
| parent | e456085a392d063df1a2495422523a2474ea6a18 (diff) | |
| download | STC-modified-290055ad96c22fd9dfb539d0217e45cd2f1cdb91.tar.gz STC-modified-290055ad96c22fd9dfb539d0217e45cd2f1cdb91.zip | |
Cleaned up in size-types. API always uses intptr_t as default for all containers.
Diffstat (limited to 'docs/csset_api.md')
| -rw-r--r-- | docs/csset_api.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/csset_api.md b/docs/csset_api.md index c696eab5..80ee1844 100644 --- a/docs/csset_api.md +++ b/docs/csset_api.md @@ -29,8 +29,8 @@ See the c++ class [std::set](https://en.cppreference.com/w/cpp/container/set) fo ```c csset_X csset_X_init(void); -csset_X csset_X_with_capacity(i_ssize cap); -bool csset_X_reserve(csset_X* self, i_ssize cap); +csset_X csset_X_with_capacity(intptr_t cap); +bool csset_X_reserve(csset_X* self, intptr_t cap); void csset_X_shrink_to_fit(csset_X* self); csset_X csset_X_clone(csset_x set); @@ -38,8 +38,9 @@ void csset_X_clear(csset_X* self); void csset_X_copy(csset_X* self, const csset_X* other); void csset_X_drop(csset_X* self); // destructor -i_ssize csset_X_size(const csset_X* self); bool csset_X_empty(const csset_X* self); +intptr_t csset_X_size(const csset_X* self); +intptr_t csset_X_capacity(const csset_X* self); const csset_X_value* csset_X_get(const csset_X* self, i_keyraw rkey); // const get csset_X_value* csset_X_get_mut(csset_X* self, i_keyraw rkey); // return NULL if not found |
