BloombergLP::bslstl::Function_Rep::installFunc

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>

template<class FUNC>
void
installFunc(
    FUNC&& func,
    GenericInvoker invoker);