5.8 — Introduction to std::string_view
Consider the following program: #include <iostream> int main() { int x { 5 }; // x makes a copy of its initializer std::cout << x << ‘\n’; return 0; } When the definition for x is executed, the initialization value 5 is copied into the memory allocated for variable int …