diff options
| author | Tyge Lovset <[email protected]> | 2022-04-18 15:54:14 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2022-04-18 15:54:14 +0200 |
| commit | c2ed81e1d1de503b9264e7c03bcc7087a270df94 (patch) | |
| tree | 8662baec75b3c77c5fe4b82608ff230bb807f209 /examples | |
| parent | b0d60c33a073782fe0bb08c835ca9db0b94145d0 (diff) | |
| download | STC-modified-c2ed81e1d1de503b9264e7c03bcc7087a270df94.tar.gz STC-modified-c2ed81e1d1de503b9264e7c03bcc7087a270df94.zip | |
Renamed newly added map function put_r() to put_raw() - alias for emplace_or_assign() for symetri with insert_or_assign()/put(). Experimental, may be removed.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/mapmap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/mapmap.c b/examples/mapmap.c index 94b92a81..a8f0069c 100644 --- a/examples/mapmap.c +++ b/examples/mapmap.c @@ -3,12 +3,17 @@ #define i_type People
#define i_key_str
#define i_val_str
-#define i_keydrop(p) (printf("kdrop: %s\n", cstr_str(p)), cstr_drop(p))
+#define i_keydrop(p) (printf("kdrop: %s\n", cstr_str(p)), cstr_drop(p)) // override
#include <stc/csmap.h>
#define i_type Departments
#define i_key_str
#define i_val_bind People
+// Shorthand for:
+//#define i_val People
+//#define i_cmp People_cmp
+//#define i_valfrom People_clone
+//#define i_valdrop People_drop
#include <stc/csmap.h>
#define i_type Stack
|
