BloombergLP::bslstl::Function_InvokerUtil::invokerForFunc

Return the invoker for FUNC, or null if f is a null callable.

Synopsis

Declared in <bslstl_function_invokerutil.h>

template<
    class PROTOTYPE,
    class FUNC>
static
bslstl::Function_InvokerUtil::GenericInvoker*
invokerForFunc(FUNC const& f);

Description

Return a pointer to the invoker for a callable object of (template paramter) type FUNC. If the specified f object is a null pointer or null pointer-to-member, return a null pointer. Note that template argument PROTOTYPE must be supplied excplicitly, as there is no way to deduce it from the function arguments.

Return Value

invoker for FUNC, or null if f is a null callable

Parameters

NameDescription
fcallable object whose invoker is requested