1 #if !defined(_BTKIMPL_INVOKER_HPP_) 2 #define _BTKIMPL_INVOKER_HPP_ 8 template<
class Callable,
class ...Args>
9 struct Invoker:
public std::tuple<Args...>{
11 static void Run(
void *__self){
13 std::unique_ptr<Invoker> ptr(
self);
14 std::apply(std::forward<Callable>(ptr->callable),
15 std::forward<std::tuple<Args...>&&>(*ptr));
21 #endif // _BTKIMPL_INVOKER_HPP_ This header include many useful containers.
Definition: async.hpp:7
Definition: invoker.hpp:9