$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Jonathan Brownell (alphaomega_at_[hidden])
Date: 2002-02-11 00:58:31
> (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