MCPcopy Create free account
hub / github.com/Icinga/icinga2 / UnpackCaller

Class UnpackCaller

lib/base/functionwrapper.hpp:62–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60using BuildIndices = typename build_indices<N>::type;
61
62struct UnpackCaller
63{
64private:
65 template <typename FuncType, size_t... I>
66 auto Invoke(FuncType f, const std::vector<Value>& args, indices<I...>) -> decltype(f(args[I]...))
67 {
68 return f(args[I]...);
69 }
70
71public:
72 template <typename FuncType, int Arity>
73 auto operator() (FuncType f, const std::vector<Value>& args) -> decltype(Invoke(f, args, BuildIndices<Arity>{}))
74 {
75 return Invoke(f, args, BuildIndices<Arity>{});
76 }
77};
78
79template<typename FuncType, int Arity, typename ReturnType>
80struct FunctionWrapper

Callers 3

InvokeMethod · 0.85
InvokeMethod · 0.85
WrapFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected