bsl::function::function

Create an empty function object using the specified allocator.

Synopsis

Declared in <bslstl_function.h>

function(
    std::allocator_arg_t allocatorArg,
    allocator_type const& allocator,
    nullptr_t unused) noexcept;

Description

Create an empty function object. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.

Parameters

NameDescription
allocatorArgallocator-argument tag (unused)
allocatorallocator used to supply memory
unusednull pointer literal selecting the empty state