Return-type deduction is a C++11 feature for lambda expressions and trailing return-types, that also applies to normal functions in C++14.
In c++14 the decltype(auto) idiom is introduced. Typically its use is to allow auto declarations to use the decltype …
c++ auto c++14 decltype return-type-deductionWith GCC 4.8.0 released, we have a compiler that supports automatic return type deduction, part of C++14. With -std=c++1y, …
c++ c++14 return-type-deduction