[info] type_name = "google::protobuf::RepeatedField" ctype = "REPEATED_FIELD_TYPE" header = "google/protobuf/repeated_field.h" # Old: typeName = "google::protobuf::RepeatedField<" ns = ["google::protobuf::RepeatedField"] numTemplateParams = 1 replaceTemplateParamIndex = [] [codegen] decl = """ template void getSizeType(const %1% &container, size_t& returnArg); """ func = """ template void getSizeType(const %1% &container, size_t& returnArg) { SAVE_DATA((uintptr_t)&container); SAVE_DATA((uintptr_t)container.Capacity()); SAVE_DATA((uintptr_t)container.size()); // The double ampersand is needed otherwise this loop doesn't work with vector for (const auto& it: container) { getSizeType(it, returnArg); } } """