Allows declaring a variable scoped to the statement.
Type-safe union.
std::optional<int> parse_int(const std::string& s) try return std::stoi(s); catch(...) return std::nullopt; c++ 2017
void print(std::string_view sv) std::cout << sv; Allows declaring a variable scoped to the statement
print("temporary"); // no allocation Most STL algorithms gained execution policy overloads: seq , par , par_unseq . parse_int(const std::string& s) try return std::stoi(s)
g++ -std=c++17 program.cpp clang++ -std=c++17 program.cpp cl /std:c++17 program.cpp # MSVC C++17 is often described as a "quality-of-life" release because it addressed many everyday pain points without introducing radical new paradigms (unlike C++11 or C++20). It made C++ more approachable and efficient, and most codebases quickly adopted its features.