C++ Language/Type/Shortcuts/TrailingReturnType

In templated code (using template-parameter ), if you want your compiler to infer a function's return type from an expression that involves a parameter's type, then use this "trailing return type" syntax:.

Additional information about the trailing return syntax