container(3) container(3)

NAME

container - adapt template class constructor to free function

SYNOPSIS

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

DESCRIPTION

Adapt template class constructor to free function.

RETURN VALUES

A function.

STANDARDS

container is a container function.

SEE ALSO

construct(3)