cfn(3) cfn(3)

NAME

cfn - container function adaptor

SYNOPSIS

#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);

DESCRIPTION

Adpats a non-container function to a container function.

RETURN VALUES

Normally returns a cfn_c <F> container, which behaves like a container function variant of f.

SEE ALSO

cinvoke(3)