From 7b6fb49407abdd41c2bc1fdb8c84aaabcc3295de Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 12 May 2022 15:29:15 +0200 Subject: i_keyfrom/i_valfrom no longer used with i_key_bind/i_val_bind. Is considered optional for enabling emplace. --- docs/cmap_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/cmap_api.md b/docs/cmap_api.md index 67210b6e..02052847 100644 --- a/docs/cmap_api.md +++ b/docs/cmap_api.md @@ -378,16 +378,16 @@ static inline RViking Viking_toraw(const Viking* vp) { // With this in place, we define the Viking => int hash map type: #define i_type Vikings +#define i_key_bind Viking #define i_keyraw RViking +#define i_keyfrom Viking_from // optional to enable emplace funcs. #define i_hash(rp) (c_strhash(rp->name) ^ c_strhash(rp->country)) -#define i_key_bind Viking #define i_val int /* i_key_bind macro auto-binds these functions: #define i_hash RViking_hash #define i_cmp RViking_cmp #define i_keyclone Viking_clone - #define i_keyfrom Viking_from // because i_keyraw type is defined #define i_keyto Viking_toraw // because i_keyraw type is defined #define i_keydrop Viking_drop */ -- cgit v1.2.3