int main || auto main() -> int

closed account (E0p9LyTq)
I have noticed there are newer C++ code examples that use the new C++ 11 auto function -> return type function declaration/definition style for main().

I know the trailing return types are useful for templates and lambdas, two C++ aspects I am trying to wrap my head around, but is there other reasons for using a trailing return type for using the trailing return type instead of the old style? Using the trailing return type for all functions seems to make it easier to visually scan for function names in source. Does using the trailing return type improve a program in some way, make it quicker or more efficient?
Topic archived. No new replies allowed.