[#bsl-function-0a-2constructor-02] = xref:bsl.adoc[bsl]::xref:bsl/function-0a.adoc[function]::function :relfileprefix: ../../ :mrdocs: 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. == Synopsis Declared in `<bslstl_function.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- function( std::allocator_arg_t, xref:bsl/function-0a/allocator_type.adoc[allocator_type] const& allocator, xref:bsl/nullptr_t-08.adoc[nullptr_t]) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#