Function Fct

Hello,

In below link an entity named Fct has been introduced:

http://books.google.com/books?id=We21AwAAQBAJ&lpg=PP1&dq=programming%20principle%20and%20practice&pg=PA525#v=onepage&q&f=true

For example, in 15.3 when defining the Function:

Function(Fct f, double r1, double r2, Point orig, int count=100, double xscale=25, double yscale=25);

The problem is Fct. It seems to be a class but what is its definition?
For understanding the cases and also being able to dealing with the exercises, I think I need to read the body of the Fct.

Any help?


America needs another Luther King.
The book wrote:
What is the type Fct that we used to represent a function argument? It is a variant of a standard library type called std::function that can "remember" a function to be called later. Fct requires its argument to be a double and its return type to be a double.

Sounds like it's a typedef or something similar to this:
 
typedef std::function<double(double)> Fct;

http://www.cplusplus.com/reference/functional/function/
Thank you for the answer.
Topic archived. No new replies allowed.