diff options
| author | tylov <[email protected]> | 2023-08-10 22:32:02 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-08-10 22:32:02 +0200 |
| commit | 2ea55509f1d3c7b438340ad37cf725e8438c7673 (patch) | |
| tree | 539975c90da5fe20395adb4fe7627b787040daa5 /misc/examples/smartpointers/arc_demo.c | |
| parent | 97898812b4c0185db74fc5c94c7556ecef3fb1e3 (diff) | |
| parent | be5651c9fc3d3ecd2d9d24e6e4763260ef86de41 (diff) | |
| download | STC-modified-2ea55509f1d3c7b438340ad37cf725e8438c7673.tar.gz STC-modified-2ea55509f1d3c7b438340ad37cf725e8438c7673.zip | |
Merge branch 'master' of https://github.com/stclib/STC
Diffstat (limited to 'misc/examples/smartpointers/arc_demo.c')
| -rw-r--r-- | misc/examples/smartpointers/arc_demo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/examples/smartpointers/arc_demo.c b/misc/examples/smartpointers/arc_demo.c index 929a48a1..a66d84b0 100644 --- a/misc/examples/smartpointers/arc_demo.c +++ b/misc/examples/smartpointers/arc_demo.c @@ -11,13 +11,14 @@ void int_drop(int* x) { #define i_type Arc // set type name to be defined (instead of 'carc_int') #define i_key int #define i_keydrop int_drop // optional, just to display the elements destroyed -#define i_cmp_native // use int comparison (x < y, x == y). +#define i_use_cmp // use int comparison (x < y, x == y). #include <stc/carc.h> // Arc #define i_keyboxed Arc // note: use i_keyboxed instead of i_key for carc/cbox elements #include <stc/csset.h> // csset_Arc (like: std::set<std::shared_ptr<int>>) #define i_keyboxed Arc // note: as above. +#define i_use_cmp #include <stc/cvec.h> // cvec_Arc (like: std::vector<std::shared_ptr<int>>) int main(void) |
