arrow operator (->) in function heading
I found such code: template <typename T, typename T1> auto compose(T a, T1 b) -> decltype(a + b) { return a+b; } I figured with all details, that were new to me, but one. Tell me please, where can I read about, what does the arrow operator ( -> ) mean in function heading? I guess purely logically, that -> operator determines a type, that will be gotten by auto , but I want to get this straight, but can't find information. Jan Hudec In C++11, there are two syntaxes for function declaration: return-type identifier ( argument-declarations... ) and auto identifier ( argument-declarations... ) ->