We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da133a0 commit 4253517Copy full SHA for 4253517
talk/morelanguage/stl.tex
@@ -133,6 +133,7 @@
133
m["hello"] = 1; // inserts new key, def. constr. value
134
m["hello"] = 2; // finds existing key
135
auto [it, isNewKey] = m.insert({"hello", 0}); // no effect
136
+ // ^ C++17: "Structured binding"
137
int val = m["world"]; // inserts new key (val == 0)
138
int val = m.at("monde"); // throws std::out_of_range
139
0 commit comments