Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Std/Stl/CallableObjects/MemberFunction

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

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). Additional information about a member function being a callable-object (includes interactive examples)