diff --git a/types/small_vec_type.toml b/types/small_vec_type.toml index 309c700..171033d 100644 --- a/types/small_vec_type.toml +++ b/types/small_vec_type.toml @@ -3,22 +3,22 @@ typeName = "folly::small_vector<" numTemplateParams = 1 ctype = "SMALL_VEC_TYPE" header = "folly/small_vector.h" -ns = ["folly::small_vector"] +ns = ["folly::small_vector_policy::policy_size_type", "folly::small_vector"] replaceTemplateParamIndex = [] # allocatorIndex = 0 # underlyingContainerIndex = 0 [codegen] decl = """ -template -void getSizeType(const %1% &container, size_t& returnArg); +template +void getSizeType(const %1% &container, size_t& returnArg); """ func = """ -template -void getSizeType(const %1% &container, size_t& returnArg) +template +void getSizeType(const %1% &container, size_t& returnArg) { - SAVE_SIZE(sizeof(%1%)); + SAVE_SIZE(sizeof(%1%)); SAVE_DATA((uintptr_t)(N)); SAVE_DATA((uintptr_t)container.capacity()); SAVE_DATA((uintptr_t)container.size());