Function return type deduction in C++14
C++11 introduced the auto keyword as a placeholder for types. It could be used for declaring variables but also for the return type of a function, given than you use a new syntax with a trailing type at the end of the function. auto foo() -> int { return 42; } or template auto foo(T … Read more