Changes between Initial Version and Version 1 of C++Features


Ignore:
Timestamp:
Aug 12, 2025, 1:54:44 PM (2 months ago)
Author:
Eric Pettersen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • C++Features

    v1 v1  
     1== Our Friend ~~Otto~~ auto ==
     2
     3Simplify declarations; examples...
     4
     5        auto err_val = PyList_New(2);
     6
     7        for (auto node: ast.nodes) {
     8
     9        auto distance = (ast.choice == 0 ? eval_real_number : eval_integer)(*ast.nodes[1]);
     10
     11== Initializer Lists ==
     12
     13For initializing containers:
     14
     15        static std::vector<std::string> symbols = { "&", "|" };
     16
     17[https://www.stroustrup.com/C++11FAQ.html#init-list Discussion]