June 2025
Intermediate to advanced
1093 pages
33h 24m
English
There are still some special cases regarding function definitions that I will briefly mention here so that you can recognize them when you stumble upon them.
For example, you can use return to return more than one value. To do this, use the data type tuple. I will go into more detail in Chapter 28, Section 28.1. There you will see how to easily bundle multiple values into a single return value using tuple—which feels like returning multiple values.
If you find the noexcept keyword after the function declaration, then the author of the function promises that this function will not throw an exception (see Chapter 10). Let's assume the hypothetical class File, which has the following function:
File openFile ...Read now
Unlock full access