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
Name |
Description |
rep |
representation holding the pointer‐to‐member‐function |
obj |
object, pointer, or smart pointer used to invoke |
args |
remaining arguments forwarded to the member function |
Created with MrDocs