C++ Language/Std/Stl/CallableObjects/MemberFunction
Appearance
A callable-object could also be assigned to a C++ member function:std::function<int(const CRType*,int,int)> DoMath
= &CRType::DoAddition;
Now, invocation requires both parameters and a this
pointer (an address of some pre-existing target-object): DoMath(&oTargetObject, 11, 22)
.