From 12a4806b85301a8b1d289e3d797a8f5e2c724367 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 28 Feb 2018 21:07:43 +0100 Subject: [PATCH] Add documentation --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 376b8f24..799f5f80 100644 --- a/README.md +++ b/README.md @@ -1282,6 +1282,16 @@ Example: } +#### DICT\_STOREHASH\_DEF2(name, key\_type, key\_oplist, value\_type, value\_oplist) + +Define the dictionary 'name##\_t' and its associated methods as "static inline" functions +just like DICT\_DEF2. + +The only difference is that it stores the computed hash in the dictionnary +which allows avoiding recomputing it in some occasions resulting in faster +dictionary if the hash is costly to compute, or slower otherwise. + + #### DICT\_OA\_DEF2(name, key\_type, key\_oplist, value\_type, value\_oplist) Define the dictionary 'name##\_t' and its associated methods