summaryrefslogtreecommitdiffhomepage
path: root/docs/csmap_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-12-29 15:42:10 +0100
committerTyge Løvset <[email protected]>2021-12-29 15:42:10 +0100
commit15e1dd79211828bcb8c2a809837b56397d65c6d9 (patch)
tree77f7ae49c26ccc514dd80836223ae032a18c79e6 /docs/csmap_api.md
parenta53b2f4269951e0b5340723670137b4fdf96534c (diff)
downloadSTC-modified-15e1dd79211828bcb8c2a809837b56397d65c6d9.tar.gz
STC-modified-15e1dd79211828bcb8c2a809837b56397d65c6d9.zip
Fixed minors in map docs.
Diffstat (limited to 'docs/csmap_api.md')
-rw-r--r--docs/csmap_api.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/csmap_api.md b/docs/csmap_api.md
index 65f932ea..964046b1 100644
--- a/docs/csmap_api.md
+++ b/docs/csmap_api.md
@@ -18,15 +18,19 @@ See the c++ class [std::map](https://en.cppreference.com/w/cpp/container/map) fo
#define i_key // key: REQUIRED
#define i_val // value: REQUIRED
#define i_cmp // three-way compare two i_keyraw* : REQUIRED IF i_keyraw is a non-integral type
-#define i_keydrop // destroy key func - defaults to empty destruct
+
+#define i_keydrop // destroy key func - defaults to empty destruct
#define i_keyraw // convertion "raw" type - defaults to i_key
#define i_keyfrom // convertion func i_keyraw => i_key - defaults to plain copy
#define i_keyto // convertion func i_key* => i_keyraw - defaults to plain copy
-#define i_valdrop // destroy value func - defaults to empty destruct
+
+#define i_valdrop // destroy value func - defaults to empty destruct
#define i_valraw // convertion "raw" type - defaults to i_val
#define i_valfrom // convertion func i_valraw => i_val - defaults to plain copy
#define i_valto // convertion func i_val* => i_valraw - defaults to plain copy
-#define i_tag // defaults to i_key
+
+#define i_tag // typename tag. defaults to i_key
+#define i_type // full typename of the container
#include <stc/csmap.h>
```
`X` should be replaced by the value of `i_tag` in all of the following documentation.