[#BloombergLP-bslstl-Function_Rep-installFunc] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Function_Rep.adoc[Function_Rep]::installFunc :relfileprefix: ../../../ :mrdocs: Do nothing if the specified `func` is a null pointer, otherwise allocate storage (either in‐place within this object's small‐object buffer or out‐of‐place from the allocator) to hold a target of (template parameter) type `FUNC`, forward the `func` to the constructor of the new target, set `d_funcManager_p` to manage the new target, and set `d_invoker_p` to the specified `invoker` address. The behavior is undefined unless this object is empty on entry. Note that `FUNC` will not qualify for the small‐object optimization unless `bsl::is_nothrow_move_constructible<FUNC>::value` is `true`. == Synopsis Declared in `<bslstl_function_rep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class FUNC> void installFunc( FUNC&& func, xref:BloombergLP/bslstl/Function_Rep/GenericInvoker.adoc[GenericInvoker] invoker); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#