bsl::function::function

Create a function having the same value as (i.e., wrapping a copy of the target held by) the specified original object. Use the specified allocator (e.g., the address of a bslma::Allocator object) to supply memory. If allocator == original.allocator(), this object is created as if by move construction; otherwise it is created as if by extended copy construction using allocator.

Synopsis

Declared in <bslstl_function.h>

function(
    std::allocator_arg_t,
    allocator_type const& allocator,
    BloombergLP::bslmf::MovableRef<function> original);