diff options
| author | Tyge Løvset <[email protected]> | 2021-01-17 12:48:51 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-01-17 12:48:51 +0100 |
| commit | 7e05453608937b800dec1c9f8c9698dca7071e39 (patch) | |
| tree | b4c9150c8ce4c19c4ee715f21038039933a49ab0 | |
| parent | 595e19db002f41c7ab4cbbf943e131c133568fb6 (diff) | |
| parent | 0e46937f4f284f0554b8c21237d8688c86fb5e14 (diff) | |
| download | STC-modified-7e05453608937b800dec1c9f8c9698dca7071e39.tar.gz STC-modified-7e05453608937b800dec1c9f8c9698dca7071e39.zip | |
Merge branch 'master' of https://github.com/tylo-work/C99Containers into master
| -rw-r--r-- | docs/cmap_api.md | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md index 8f83fc5d..cbfa3d1c 100644 --- a/docs/cmap_api.md +++ b/docs/cmap_api.md @@ -16,11 +16,6 @@ See [std::unordered_map](https://en.cppreference.com/w/cpp/container/unordered_m keyFromRaw=c_default_clone, keyToRaw=c_default_to_raw, RawKey=Key) -// or: -#define using_cmap(X, Key, Mapped, mappedDestroy, - mappedFromRaw, mappedToRaw, RawMapped, - keyEqualsRaw, keyHashRaw, keyDestroy, - keyFromRaw, keyToRaw, RawKey) #define using_cmap_strkey(X, Mapped, mappedDestroy=c_default_del, mappedClone=c_default_clone) @@ -33,7 +28,7 @@ See [std::unordered_map](https://en.cppreference.com/w/cpp/container/unordered_m RawKey=Key) #define using_cmap_str() ``` -The macro `using_cmap()` can be instantiated with 3, 5, 7, 9, 11, or 13 arguments in the global scope. +The macro `using_cmap()` can be instantiated with 3, 5, 7, 9, or 11 arguments in the global scope. Default values are given above for args not specified. `X` is a type tag name and will affect the names of all cmap types and methods. E.g. declaring `using_cmap(my, int);`, `X` should be replaced by `my` in all of the following documentation. @@ -43,10 +38,7 @@ be replaced by `my` in all of the following documentation. `using_cmap_strkey()` and `using_cmap_strval()` are special macros defined by `using_cmap()`. The macro `using_cmap_str()` is a shorthand for ```c -using_cmap(str, cstr_t, cstr_t, cstr_del, - cstr_from, cstr_to_raw, const char*, - cstr_equals_raw, cstr_hash_raw, cstr_del, - cstr_from, cstr_to_raw, const char*) +using_cmap(str, cstr_t, cstr_t, cstr_del, ...) // uses char* as "raw" types ``` ## Types |
