Home > Back-end >  The function <myclass * ()> f;
The function <myclass * ()> f;

Time:09-27

As title, what is the meaning of this?
And how to use the f to

CodePudding user response:

Define a function object
 
Myclass * x=f ();

CodePudding user response:

Can, for example, I still don't understand

CodePudding user response:

reference 1st floor akirya response:
object defines a function
 
Myclass * x=f ();


Can, for example, I still don't understand

CodePudding user response:

reference 1st floor akirya response:
object defines a function
 
Myclass * x=f ();


Is to create a return value is m * parameter is the function f (),
Then f () call is m * object in the calling overloaded operator ()?

CodePudding user response:

reference wubostczxc159753 reply: 3/f
Quote: refer to 1st floor akirya response:

Define a function object
 
Myclass * x=f ();


Can, for example, I still don't understand


According to the function pointer can understand, this is an enhanced version of the function pointer,
  • Related