Ticket #300: iterator.patch
File iterator.patch, 1.2 KB (added by , 10 years ago) |
---|
-
AHADIC++/Tools/Soft_Cluster_Handler.C
558 558 Single_Transition_Siter start(stl->begin()),siter; 559 559 if (lighter) { 560 560 if (hadron!=Flavour(kf_none)) { 561 do { 562 if (start->first==hadron) { 563 siter = start; 564 siter--; 565 if ((++siter)!=stl->end()) start++; 566 else return 0.; 567 break; 568 } 569 else start++; 570 } while (start!=stl->end()); 561 siter=stl->find(hadron); 562 if (siter == stl->end()) { 563 return 0.; 564 } 565 else { 566 start=siter; 567 start++; // Jump to the next lightest hadron 568 } 571 569 } 572 570 else { 573 571 for (siter=start;siter!=stl->end();siter++) { -
AMISIC++/Main/MI_Base.C
60 60 for (String_MI_Base_Map::iterator nbit=s_bases->begin(); 61 61 nbit!=s_bases->end();++nbit) { 62 62 if (nbit->first==m_name) { 63 s_bases->erase(nbit --);63 s_bases->erase(nbit); 64 64 break; 65 65 } 66 66 }