summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-05-12 15:29:15 +0200
committerTyge Løvset <[email protected]>2022-05-12 15:29:15 +0200
commit7b6fb49407abdd41c2bc1fdb8c84aaabcc3295de (patch)
tree01165be591bb08f362bfefd49bccec9548ff2302 /docs
parente2fad76fa778dc6bc041e2163615f230ae069f6b (diff)
downloadSTC-modified-7b6fb49407abdd41c2bc1fdb8c84aaabcc3295de.tar.gz
STC-modified-7b6fb49407abdd41c2bc1fdb8c84aaabcc3295de.zip
i_keyfrom/i_valfrom no longer used with i_key_bind/i_val_bind. Is considered optional for enabling emplace.
Diffstat (limited to 'docs')
-rw-r--r--docs/cmap_api.md4
1 files changed, 2 insertions, 2 deletions
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
*/