O'Reilly logo
  • Michael Church thinks this is interesting:

class Widget { ... };

vector<Widget> vw;

Widget bestWidget;

...                                            // give bestWidget a value

vector<Widget>::iterator i =                   // find a Widget with the
  find(vw.begin(), vw.end(), bestWidget);      // same value as bestWidget

write this:...

From

Cover of Effective STL

Note

What is with this garbage code formatting?