411 REFERENCE · Wikibooks
C++ Language/Type/Shortcuts/FromReturnStatement
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
A compiler can infer a function's return type from its return statement, by specifying the return type as either auto or decltype(auto).
Additional information about inferring type from a return statement