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

Create a `function` having the same value as (i&period;e&period;, wrapping a copy of the target held by) the specified `original` 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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
function(xref:bsl/function-0a.adoc[function] const& original);
----


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