summaryrefslogtreecommitdiffhomepage
path: root/docs/csmap_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-03-19 13:08:05 +0100
committerTyge Løvset <[email protected]>2021-03-19 13:08:05 +0100
commit60786d8b27e9c622c43ddc8e77575c0853728014 (patch)
tree7fd6ab6963de42b11276f4ce57fc177ba4496848 /docs/csmap_api.md
parent0183aa814b21de2f623b56d79ac0f44a2bbb0366 (diff)
downloadSTC-modified-60786d8b27e9c622c43ddc8e77575c0853728014.tar.gz
STC-modified-60786d8b27e9c622c43ddc8e77575c0853728014.zip
Added clear() to cpque, cstack, cqueue, cbits, even though not in STL. Code/docs formatting.
Diffstat (limited to 'docs/csmap_api.md')
-rw-r--r--docs/csmap_api.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/csmap_api.md b/docs/csmap_api.md
index d6eb0ddc..bd877ca1 100644
--- a/docs/csmap_api.md
+++ b/docs/csmap_api.md
@@ -47,6 +47,7 @@ All csmap definitions and prototypes are available by including a single header
```c
csmap_X csmap_X_init(void);
csmap_X csmap_X_clone(csmap_x map);
+
void csmap_X_clear(csmap_X* self);
void csmap_X_swap(csmap_X* a, csmap_X* b);
void csmap_X_del(csmap_X* self); // destructor
@@ -172,7 +173,7 @@ Output:
```
### Example 3
-Demonstrate csmap with plain-old-data key type Vec3i and int as mapped type: csmap<Vec3i, int>.
+Demonstrate csmap with plain-old-data key type Vec3i and int as mapped type: csmap<Vec3i, int>.
```c
#include "stc/csmap.h"
#include <stdio.h>