fork(1) download
  1. #include <iostream>
  2. #include <map>
  3. #include <set>
  4. using namespace std;
  5.  
  6. struct ZZ{};
  7.  
  8. int main() {
  9.  
  10.  
  11. map<ZZ, std::set<ZZ>> mapa;
  12. std::map<ZZ, std::set<ZZ>>::iterator it_map;
  13. std::set<ZZ>::iterator it_set1, it_set2;
  14.  
  15. for(it_map = mapa.begin(); it_map != mapa.end(); ++it_map){
  16. for(it_set1 = it_map->second.begin(); it_set1 != it_map->second.end(); ++it_set1){
  17. for(it_set2 = ++it_set1; it_set2 != it_map->second.end(); ++it_set2){
  18. /*
  19. some function which use *it_set1, *it_set2
  20. */
  21. }
  22. }
  23. }
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty