container(3) | container(3) |
container - adapt template class constructor to free function
#include <cfl/functions/container.hpp>
template <typename U> struct C
{
C (U);
};
// f is a free function
auto f = container <C>;
// r == C <int> {0};
auto r = f (0);
Adapt template class constructor to free function.
A function.
container
is a container function.
construct(3)