cfn(3) | cfn(3) |
#include <cfl/containers/cfn.hpp>
#include <cfl/bind/bind.hpp>
template <typename F>
/*unspecified*/ cfn (F && f)
auto f = [] (int a, int b) { return a + b; };
auto g = cfn (f);
assert (g (1__, 2) (1) == 3);
Adpats a non-container function to a container function.
Normally returns a cfn_c <F>
container, which behaves like a container
function variant of f
.
cinvoke(3)