BloombergLP::bslstl::Function_InvokerUtil_Dispatch<Function_InvokerUtil::e_MemFunctionPtr, RET(ARG0, ARGS...), FUNC>::invoke

Invoke the member-function target of rep on obj with the given arguments.

Synopsis

Declared in <bslstl_function_invokerutil.h>

static
RET
invoke(
    Function_Rep const* rep,
    bslmf::ForwardingType<ARG0>::Type obj,
    bslmf::ForwardingType<ARGS>::Type... args);

Description

Given pointer to member function, f, as the target of the specified rep, use the specified obj to invoke f with the specified args and return the result, i.e., (obj.*f)(args...). If obj is a pointer or smart-pointer, dereference obj first, i.e., call ((*obj).*f)(args...).

Return Value

result of invoking the member function on obj with args

Parameters

NameDescription
reprepresentation holding the pointer-to-member-function
objobject, pointer, or smart pointer used to invoke f
argsremaining arguments forwarded to the member function