Tag: Return Type Deduction

C++14: Return Type Deduction for Normal Functions

Written by on April 8, 2016 in C++, Programming with 0 Comments

In C++11, a function must specify its return type in one of the following two ways: int aFunction(int arg) {     return arg * 2; } (or) auto aFunction(int arg) -> int {     return arg * 2; } The first is the classic function definition syntax. The second form was introduced in […]

Continue Reading

Top