Associative array/Creation: Difference between revisions

m
(→‎{{header|C++}}: The example that was here obscured the usage of std::map in a bunch of I/O code.)
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));</cpplang>
 
===Lookup===
Anonymous user