MCPcopy Create free account
hub / github.com/Extra-Creativity/Modern-Cpp-Basics / Invoke

Function Invoke

12-Advanced Template/Answer-code/Invoke.cpp:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74template<typename F, typename... Args>
75decltype(auto) Invoke(F &&func, Args &&...args)
76{
77 return Detail::InvokeHelper<std::remove_cvref_t<F>>::Call(
78 std::forward<F>(func), std::forward<Args>(args)...);
79}
80
81int Test(int param)
82{

Callers 2

ObjectTestFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected