C++14 Features

In this post we discuss some of the key features added in C++14. In particular, we look at the following enhancements: Language features: Automatic return type deduction Generic lambdas Extended constexpr functionality Standard library features: std::make_unique Additional user-defined literals Language features Automatic return type deduction It is now possible for the compiler to deduce the … Read more

Trailing Return Type

The trailing return type feature was added in C++11. This feature allows you to specify the return type after a function declaration instead of before. In order to see how this is can be useful, we shall look at a simple example. Suppose we have an Employee class which records an employee’s salary and whether … Read more