13.16 — Anonymous objects
In certain cases, we need a variable only temporarily. For example, consider the following situation: #include <iostream> int add(int x, int y) { int sum{ x + y }; return sum; } int main() { std::cout << add(5, 3) << ‘\n’; return 0; } In the add() function, note that …