Boost logo

Boost Users :

From: Witz (witz_at_[hidden])
Date: 2004-04-16 14:18:49


> 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.

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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net