Changes between Version 1 and Version 2 of C++Features
- Timestamp:
- Aug 12, 2025, 2:29:07 PM (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
C++Features
v1 v2 7 7 for (auto node: ast.nodes) { 8 8 9 auto distance = (ast.choice == 0 ? eval_real_number : eval_integer)(*ast.nodes[1]); 9 auto distance = (ast.choice == 0 ? eval_real_number : eval_integer)(*ast.nodes![1]); 10 11 for (auto i = 1u; I < ast.nodes.size(); ++i) { 10 12 11 13 == Initializer Lists == … … 16 18 17 19 [https://www.stroustrup.com/C++11FAQ.html#init-list Discussion] 20 21 == Raw Strings == 22 23 For more easily specifying strings that have lots of special characters (think newlines and backslashes) such as regular expressions or parser grammars. 24 25 The basic syntax is: 26 27 R"(''some complex string'')"