Invoke the member-function target of rep on obj with the given arguments.
Declared in <bslstl_function_invokerutil.h>
static
RET
invoke(
Function_Rep const* rep,
bslmf::ForwardingType<ARG0>::Type obj,
bslmf::ForwardingType<ARGS>::Type... args);
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...).
result of invoking the member function on obj with args
| Name | Description |
|---|---|
| rep | representation holding the pointer-to-member-function |
| obj | object, pointer, or smart pointer used to invoke f |
| args | remaining arguments forwarded to the member function |