Anonymous user
Associative array/Creation: Difference between revisions
m
→insert()
(→{{header|C++}}: The example that was here obscured the usage of std::map in a bunch of I/O code.) |
m (→insert()) |
||
Line 191:
====insert()====
The second approach is a little more complicated. We have to use the '''pair<>''' template:
<lang cpp>exampleMap.insert(std::pair<int, double>(7,3.14));</
===Lookup===
|