diff --git a/include/pit/functions.h b/include/pit/functions.h new file mode 100644 index 0000000..01df5a2 --- /dev/null +++ b/include/pit/functions.h @@ -0,0 +1,13 @@ +#include +#include + +namespace pit{ + template + std::function generate(T val){ + return [val](){return val;}; + } + template + std::function accept_args(std::function f){ + return [f](Args...){return f();}; + } +}