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 f14be07 commit 5bdf7feCopy full SHA for 5bdf7fe
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