1

I know it is a dummy question and im gonna get alot of minuses, but its importent to me to know, so I will ask anyway..

I sow the next looping type on map:

 for(auto const& ent2 : ent1.second) {
    // ent2.first is the second key
    // ent2.second is the data
  }

With this I can loop a map by its iterators easily. But I want to know if I can use this kind of looping on other kind of data like strings and vectors etc... Whats the name of this looping kind so I can search on it.

fdwfg wdfwdfv
  • 229
  • 1
  • 4
  • 9

0 Answers0