Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Member Functions | Data Fields
mty::CallBack< ReturnType, Args > Struct Template Reference

Public Member Functions

 CallBack (CallBack const &other)=default
 
CallBackoperator= (CallBack const &other)=default
 
 CallBack (std::function< ReturnType(Args ...)> const &t_func)
 
CallBackoperator= (std::function< ReturnType(Args ...)> const &t_func)
 
 operator bool () const
 
void reset ()
 
bool apply (ReturnType &returnValue, Args &&...args) const
 

Data Fields

std::optional< std::function< ReturnType(Args...)> > func
 

The documentation for this struct was generated from the following file: