summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-04-09 21:18:42 +0200
committerTyge Lovset <[email protected]>2023-04-09 21:18:42 +0200
commit7a9b07ea97f70da96807a80b2e087bd08a0316a3 (patch)
treeb10c4180323fe9b84c1db1de48701e57a892f5cd /README.md
parentf3ee9ecd5227e891f70377559d0bb043b017794a (diff)
downloadSTC-modified-7a9b07ea97f70da96807a80b2e087bd08a0316a3.tar.gz
STC-modified-7a9b07ea97f70da96807a80b2e087bd08a0316a3.zip
Added "Run this code" in Compiler Explorer a few places. New example in csmap_api.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 13cedb10..15778ddd 100644
--- a/README.md
+++ b/README.md
@@ -197,7 +197,7 @@ For user-defined struct elements, `i_cmp` compare function should be defined as
only works for integral types. *Alternatively, `#define i_opt c_no_cmp` to disable sorting and searching*. Similarily, if an element destructor `i_valdrop` is defined, `i_valclone` function is required.
*Alternatively `#define i_opt c_no_clone` to disable container cloning.*
-Let's make a vector of vectors, which can be cloned. All of its element vectors will be destroyed when destroying the Vec2D.
+Let's make a vector of vectors, which can be cloned. All of its element vectors will be destroyed when destroying the Vec2D. [ [Run this code](https://godbolt.org/z/5EY56qnfM) ]
```c
#include <stdio.h>
@@ -231,7 +231,7 @@ int main(void)
c_drop(Vec2D, &vec, &clone); // Cleanup all (6) vectors.
}
```
-This example uses four different container types:
+This example uses four different container types: [ [Run this code](https://godbolt.org/z/x5YKeMrEh) ]
```c
#include <stdio.h>