Version 2 (modified by 2 months ago) ( diff ) | ,
---|
Our Friend Otto auto
Simplify declarations; examples...
auto err_val = PyList_New(2);
for (auto node: ast.nodes) {
auto distance = (ast.choice == 0 ? eval_real_number : eval_integer)(*ast.nodes[1]);
for (auto i = 1u; I < ast.nodes.size(); ++i) {
Initializer Lists
For initializing containers:
static std::vector<std::string> symbols = { "&", "|" };
Raw Strings
For more easily specifying strings that have lots of special characters (think newlines and backslashes) such as regular expressions or parser grammars.
The basic syntax is:
R"(some complex string)"
Note:
See TracWiki
for help on using the wiki.