C++ weird syntax spotted in Boost template parameters
问题 I was having a look at the "Function" class documentation in Boost, and stumbled across this: boost::function<float (int x, int y)> f; I must admit this syntax is highly confusing for me. How can this be legal C++ ? Is there any trick under the hood ? Is this syntax documented anywhere? 回答1: [Edit] This is an answer to the author's original, unedited question which was actually two questions. I must admit this syntax is highly confusing for me. How can this be legal C++ ? :) Is there any