79483421

Date: 2025-03-04 10:50:44
Score: 1
Natty:
Report link

I think you can also do MyMap::iterator::reference it .

auto f = [](MyMap::iterator::reference it) {std::cout << it.first + it.second << std::endl; };
std::for_each(mymap.begin(), mymap.end(), f);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anand Rathi