14.13 — Temporary class objects
Consider the following example: #include <iostream> int add(int x, int y) { int sum{ x + y }; // stores x + y in a variable return sum; // returns value of that variable } int main() { std::cout << add(5, 3) << ‘\n’; return 0; } In the add() …