diff options
| author | tylov <[email protected]> | 2023-08-06 23:24:41 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-08-06 23:24:41 +0200 |
| commit | 10f27b760903a153fe6ebc84b0123acb7a50a0ee (patch) | |
| tree | e2920804c057431d5cb5bbbe534f924b73a387cb /docs/algorithm_api.md | |
| parent | f514c5128d62ad53623af4d45bd856b9564bce4f (diff) | |
| parent | 8cfaa56df7ef4dda7c55dc9ae09a4e65403b82d9 (diff) | |
| download | STC-modified-10f27b760903a153fe6ebc84b0123acb7a50a0ee.tar.gz STC-modified-10f27b760903a153fe6ebc84b0123acb7a50a0ee.zip | |
Merge branch 'master' of https://github.com/stclib/STC
Diffstat (limited to 'docs/algorithm_api.md')
| -rw-r--r-- | docs/algorithm_api.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/algorithm_api.md b/docs/algorithm_api.md index 40ff32d6..127aa120 100644 --- a/docs/algorithm_api.md +++ b/docs/algorithm_api.md @@ -275,12 +275,13 @@ int* ip = c_const_cast(int*, cs); // issues a warning! ### Predefined template parameter functions -**crawstr** - Non-owned `const char*` "class" element type: `#define i_keyclass crawstr` +**ccharptr** - Non-owning `const char*` "class" element type: `#define i_keyclass ccharptr` ```c -typedef const char* crawstr; -int crawstr_cmp(const crawstr* x, const crawstr* y); -bool crawstr_eq(const crawstr* x, const crawstr* y); -uint64_t crawstr_hash(const crawstr* x); +typedef const char* ccharptr; +int ccharptr_cmp(const ccharptr* x, const ccharptr* y); +uint64_t ccharptr_hash(const ccharptr* x); +ccharptr ccharptr_clone(ccharptr sp); +void ccharptr_drop(ccharptr* x); ``` Default implementations ```c |
