[#bsl-function-0a-2constructor-0d] = xref:bsl.adoc[bsl]::xref:bsl/function-0a.adoc[function]::function :relfileprefix: ../../ :mrdocs: Create a `function` copying `original` using the specified `allocator`. == Synopsis Declared in `<bslstl_function.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- function( std::allocator_arg_t allocatorArg, xref:bsl/function-0a/allocator_type.adoc[allocator_type] const& allocator, xref:bsl/function-0a.adoc[function] const& original); ---- == Description Create a `function` having the same value as the specified `original` object, using the specified `allocator` to supply memory. == Parameters [cols="1,4"] |=== | Name| Description | *allocatorArg* | allocator‐argument tag (unused) | *allocator* | allocator used to supply memory | *original* | function whose target is copied |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#