I must apologize as that was not my intention. Jonathan Brownell wrote:
(1) For all cases where an STL predicate "pred" will suffice, e.g. your example using std::greater<>, is there any case where std::max_element(b, e, pred) would not also perform the job?
Not that I can see. The max_element/min_element STL functions have somehow slipped my knowledge thus far, and I feel like a complete chump now in duplicating their functionality. Thanks for pointing out the obvious, and I'll go crawl back in my hole.
-Jonathan
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
[Non-text portions of this message have been removed]