Turi Create  4.0
turi::toolkit_function_wrapper_impl::fill_in_args< InArgType > Struct Template Reference

#include <model_server/lib/toolkit_function_wrapper_impl.hpp>

Detailed Description

template<typename InArgType>
struct turi::toolkit_function_wrapper_impl::fill_in_args< InArgType >

Fills in a boost::fusion::vector<T ...> with parameters from the std::vector<variant_type>.

InArgType is a boost::fusion::vector<T ...> representing the input arguments of the user defined function.

params is a vector of variants of the same length as InArgType.

Essentially, this performs the following simple task:

inargs[n] = params[n]

Except this cannot be done so easily because each entry in the boost fusion vector is of a different type. So a bit more work is needed.

Definition at line 254 of file toolkit_function_wrapper_impl.hpp.


The documentation for this struct was generated from the following file: