[#bsl-function-0a-2constructor-02]
= xref:bsl.adoc[bsl]::xref:bsl/function-0a.adoc[function]::function
:relfileprefix: ../../
:mrdocs:

Create an empty `function` object using the specified `allocator`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;function&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
function(
    std::allocator&lowbar;arg&lowbar;t allocatorArg,
    xref:bsl/function-0a/allocator_type.adoc[allocator&lowbar;type] const& allocator,
    xref:bsl/nullptr_t-08.adoc[nullptr&lowbar;t] unused) noexcept;
----

== Description

Create an empty `function` object&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *allocatorArg*
| allocator&hyphen;argument tag (unused)
| *allocator*
| allocator used to supply memory
| *unused*
| null pointer literal selecting the empty state
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
