diff options
| author | Tyge Løvset <[email protected]> | 2022-11-06 12:57:47 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-11-06 12:57:47 +0100 |
| commit | b69006463de7b3f11d974bdddb5782282482f515 (patch) | |
| tree | 6f182dc201164fead2b5b1a094e6e8a2b43dc0a1 /docs/clist_api.md | |
| parent | c230e4cd830de22fad2f7085d968d905dadc7418 (diff) | |
| download | STC-modified-b69006463de7b3f11d974bdddb5782282482f515.tar.gz STC-modified-b69006463de7b3f11d974bdddb5782282482f515.zip | |
Improved documentation of template parameters for all containers.
Diffstat (limited to 'docs/clist_api.md')
| -rw-r--r-- | docs/clist_api.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/clist_api.md b/docs/clist_api.md index 0d20941a..aae72224 100644 --- a/docs/clist_api.md +++ b/docs/clist_api.md @@ -22,14 +22,16 @@ See the c++ class [std::list](https://en.cppreference.com/w/cpp/container/list) ## Header file and declaration ```c +#define i_type // container type name (default: clist_{i_val}) #define i_val // value: REQUIRED #define i_cmp // three-way compare two i_valraw* : REQUIRED IF i_valraw is a non-integral type #define i_valdrop // destroy value func - defaults to empty destruct #define i_valclone // REQUIRED IF i_valdrop defined -#define i_valraw // convertion "raw" type - defaults to i_val + +#define i_valraw // convertion "raw" type (default: {i_val}) #define i_valto // convertion func i_val* => i_valraw #define i_valfrom // convertion func i_valraw => i_val -#define i_tag // defaults to i_val +#define i_tag // alternative typename: cpque_{i_tag}. i_tag defaults to i_val #include <stc/clist.h> ``` |
