From 9f0a4220decbb0adaf8aa63d506cf01c55e3204c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 14 Feb 2018 11:42:36 +0000 Subject: [Feature] Allow to reserve elements in libucl --- contrib/libucl/ucl_hash.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'contrib/libucl/ucl_hash.h') diff --git a/contrib/libucl/ucl_hash.h b/contrib/libucl/ucl_hash.h index 92021e340..f474b462a 100644 --- a/contrib/libucl/ucl_hash.h +++ b/contrib/libucl/ucl_hash.h @@ -90,4 +90,10 @@ const void* ucl_hash_iterate (ucl_hash_t *hashlin, ucl_hash_iter_t *iter); */ bool ucl_hash_iter_has_next (ucl_hash_t *hashlin, ucl_hash_iter_t iter); +/** + * Reserves space in hash + * @param hashlin + */ +void ucl_hash_reserve (ucl_hash_t *hashlin, size_t sz); + #endif -- cgit v1.2.3