History of Idiom 13 > diff from v56 to v57
Edit summary for version 57 by xryax:
[Cpp] structured bindings allow you to unpack the std::pair.You shouldn't use std::endl unless you really mean to flush stdout
[Cpp] structured bindings allow you to unpack the std::pair.You shouldn't use std::endl unless you really mean to flush stdout
↷
Version 56
2019-05-31, 20:57:18
Version 57
2019-08-02, 18:47:28
Idiom #13 Iterate over map keys and values
Print each key k with its value x from an associative array mymap
Idiom #13 Iterate over map keys and values
Print each key k with its value x from an associative array mymap
Comments bubble
prefer '\n' to std::endl. std::endl flushes stdout, which you don't typically need or want.