Guest User

Untitled

a guest
Oct 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. struct Foo
  2. {
  3.    int stuff;
  4.    char moreStuff;
  5.    float bar;
  6.    int even_more_stuff;
  7.  
  8.    friend bool operator<(const Foo& l, const Foo& r) { return l.bar < r.bar; }
  9. }
Add Comment
Please, Sign In to add comment