diff options
| author | Tyge Lovset <[email protected]> | 2023-04-09 21:18:42 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-04-09 21:18:42 +0200 |
| commit | 7a9b07ea97f70da96807a80b2e087bd08a0316a3 (patch) | |
| tree | b10c4180323fe9b84c1db1de48701e57a892f5cd /README.md | |
| parent | f3ee9ecd5227e891f70377559d0bb043b017794a (diff) | |
| download | STC-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.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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> |
