Guest User

Untitled

a guest
Jul 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. std::unordered_set<ObjectRepresentation*> incompletePieces;
  2.  
  3. while (incompletePieces.size()){
  4. for (auto containedPiece : incompletePieces){ //Warning at this line that loop will run at most once
  5. // .... doing some stuff with the contained piece
  6. incompletePieces.erase(containedPiece);
  7.  
  8. break;
  9. }
  10. }
Add Comment
Please, Sign In to add comment