Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-26 11:48:19


From: "Edward Diener" <eddielee_at_[hidden]>
>
> Perhaps this is off-topic for Boost ( and belongs in comp.lang.c++ ) but
> what is the syntax for using a "function type" to declare or define a
> function ?

typedef int F(int x);

F f; // equivalent to int f(int x);

int main()
{
    f(4);
}

You can declare a member function that way, too.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk