diff options
| author | Tyge Løvset <[email protected]> | 2021-03-24 15:20:41 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-03-24 15:20:41 +0100 |
| commit | dba28f4d568439545785932ec273a1bc19abee24 (patch) | |
| tree | 9b9d6c27903eb27955a346f0d7b585b639d95896 /docs/csset_api.md | |
| parent | 52f53e8c8ea9320e2af86d6e1a09f1416a73d51c (diff) | |
| download | STC-modified-dba28f4d568439545785932ec273a1bc19abee24.tar.gz STC-modified-dba28f4d568439545785932ec273a1bc19abee24.zip | |
Removed separate ## Header section in docs.
Diffstat (limited to 'docs/csset_api.md')
| -rw-r--r-- | docs/csset_api.md | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/docs/csset_api.md b/docs/csset_api.md index 3d1996e8..fc425292 100644 --- a/docs/csset_api.md +++ b/docs/csset_api.md @@ -5,28 +5,22 @@ A **csset** is an associative container that contains a sorted set of unique obj See the c++ class [std::set](https://en.cppreference.com/w/cpp/container/set) for a functional description.
-## Declaration
+## Header file and declaration
```c
+#include <stc/csset.h>
+
using_csset(X, Key);
using_csset(X, Key, keyCompare);
using_csset(X, Key, keyCompare, keyDel, keyClone);
using_csset(X, Key, keyCompareRaw, keyDel, keyFromRaw, keyToRaw, RawKey);
-using_csset_str();
+
+using_csset_str(); // using_csset(str, cstr, ...)
```
The macro `using_csset()` must be instantiated in the global scope. `X` is a type tag name and
will affect the names of all csset types and methods. E.g. declaring `using_csset(i, int);`, `X` should
be replaced by `i` in all of the following documentation.
-`using_csset_str()` is a predefined macro for `using_csset(str, cstr, ...)`.
-
-## Header file
-
-All csset definitions and prototypes are available by including a single header file.
-
-```c
-#include <stc/csset.h>
-```
## Methods
```c
|
