Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. std::stable_sort(v.begin(), v.end());
  2.  
  3. struct P3
  4. {
  5. float x;
  6. float y;
  7. float z;
  8.  
  9. bool operator<( const P3& p ) const
  10. {
  11. return (x < p.x) || (y < p.y) || (z < p.z);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement