[#bsl-function-0a-2constructor-074] = xref:bsl.adoc[bsl]::xref:bsl/function-0a.adoc[function]::function :relfileprefix: ../../ :mrdocs: Create a `function` having the same target as the specified `original` object. Use `original.get_allocator()` as the allocator to supply memory. The `original` object is set to empty after the new object is created. If the target qualifies for the small‐object optimization (see class‐level documentation), then it is move‐constructed into the new object; otherwise ownership of the target is transferred without using the target's move constructor. == Synopsis Declared in `<bslstl_function.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- function(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<function>] original) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#