1#ifndef HOOK_HPP_RNAM6XF4
2#define HOOK_HPP_RNAM6XF4
13template<
typename... Args>
17 typedef std::function<void(Args...)> callback_type;
25 m_function = std::move(cb);
41 m_function(std::forward<Args>(args)...);
60 callback_type m_function;
69template<
typename... Args>
74 using callback_type =
typename hook_type::callback_type;
78 void operator=(callback_type&& cb)
80 m_hook = std::move(cb);
83 void operator=(
const callback_type& cb)
void operator=(callback_type &&cb)
void operator()(Args... args)