The goal of this section is to provide a brief overview of C++17 and the features added to C++. For a more comprehensive and in-depth look at C++17, please see the Further reading section of this chapter, which list additional books from Packt Publishing on the topic.
A brief overview of C++17
Language changes
There were several changes made to the C++17 language and syntax. The following are some examples.
Initializers in if/switch statements
In C++17, it is now possible to define a variable and initialize it in the definition of an if and switch statement, as follows...