map.count(key) == 0

for (auto kv : map) { kv.first;, kv.second; }