23 #ifndef CALLBACK_H_INCLUDED 24 #define CALLBACK_H_INCLUDED 31 template<
class ReturnType,
class ...Args>
34 std::optional<std::function<ReturnType(Args...)>> func;
39 CallBack(std::function<ReturnType(Args ...)>
const &t_func)
43 CallBack &operator=(std::function<ReturnType(Args ...)>
const &t_func)
49 inline operator bool()
const 60 ReturnType &returnValue,
66 returnValue = (*func)(std::forward<Args>(args)...);
71 template<
class ...Args>
74 std::optional<std::function<void(Args...)>> func;
79 CallBack(std::function<
void(Args ...)>
const &t_func)
83 CallBack &operator=(std::function<
void(Args ...)>
const &t_func)
89 inline operator bool()
const 105 (*func)(std::forward<Args>(args)...);
Definition: callback.h:32
Namespace of MARTY.
Definition: 2HDM.h:31