Boost logo

Boost Users :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2004-04-16 16:49:07

At Friday 2004-04-16 12:18, you wrote:
> > From: "Victor A. Wagner Jr."
> > what the heck are best_element and worst_element? at least I _know_ what
> > min and max are.
>we all _know_ what min and max are - that's the problem - we have a default
>predicate in mind - so min_element(begin, end, greater) doesn't work as you
>would initially (intuitively) expect - to understand it generally requires
>viewing it as min_indexed_element_if_ordered_by.

you have actually seen someone (other than yourself) write:
min_element(begin, end, greater) ??

reminds me of the long gone (thankfully) unless(blah) from BCPL
>best and worst have the advantage of requiring a context before they can be
>understood - best_element(begin, end, greater) should therefore be clear to
>just about anybody (i would hope :)
>ian whittley
>Boost-users mailing list

Victor A. Wagner Jr.
The five most dangerous words in the English language:
               "There oughta be a law"

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at