the c++ primer books says the syntax is like this:
typedef bool (*cmpFcn) (const string &, const string &);
so that cmpFcn is a name of type that is a pointer to function.
while what I expect is like this:
typedef bool (*) (const string &, const string &) cmpFcn;
because this looks more similar with
typedef long index_t;
do you guys ever feel c++ syntax is complicated, not consistently complying with some general rule?
Thanks, JLBorges, that is very clear explanation!