20 std::vector<bool> result;
21 result.reserve(arg.bool_array.size());
22 result.insert(result.end(), arg.bool_array.begin(), arg.bool_array.end());
26 std::vector<int32_t> result;
27 result.reserve(arg.int_array.size());
28 result.insert(result.end(), arg.int_array.begin(), arg.int_array.end());
32 std::vector<float> result;
33 result.reserve(arg.float_array.size());
34 result.insert(result.end(), arg.float_array.begin(), arg.float_array.end());
38 std::vector<std::string> result;
39 result.reserve(arg.string_array.size());
40 result.insert(result.end(), arg.string_array.begin(), arg.string_array.end());
47 return arg.bool_array;
55 return arg.float_array;
60 return arg.string_array;
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
StringRef is a reference to a string owned by something else.
@ SERVICE_ARG_TYPE_INT_ARRAY
@ SERVICE_ARG_TYPE_BOOL_ARRAY
@ SERVICE_ARG_TYPE_STRING
@ SERVICE_ARG_TYPE_STRING_ARRAY
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
float get_execute_arg_value< float >(const ExecuteServiceArgument &arg)
bool get_execute_arg_value< bool >(const ExecuteServiceArgument &arg)
int32_t get_execute_arg_value< int32_t >(const ExecuteServiceArgument &arg)
enums::ServiceArgType to_service_arg_type()
enums::ServiceArgType to_service_arg_type< StringRef >()
StringRef get_execute_arg_value< StringRef >(const ExecuteServiceArgument &arg)
enums::ServiceArgType to_service_arg_type< int32_t >()
enums::ServiceArgType to_service_arg_type< bool >()
enums::ServiceArgType to_service_arg_type< std::string >()
std::string get_execute_arg_value< std::string >(const ExecuteServiceArgument &arg)
T get_execute_arg_value(const ExecuteServiceArgument &arg)
enums::ServiceArgType to_service_arg_type< float >()