Create a function by moving from original using allocator.

Synopsis

Declared in <bslstl_function.h>

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

Description

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.

Parameters

Name

Description

allocatorArg

allocator‐argument tag (unused)

allocator

allocator used to supply memory

original

function whose target is moved or copied

Created with MrDocs