Boost logo

Boost :

Subject: Re: [boost] min function that accepts any number of arguments
From: David Abrahams (dave_at_[hidden])
Date: 2008-09-03 19:16:12


on Wed Sep 03 2008, "Peng Yu" <pengyu.ut-AT-gmail.com> wrote:

> Hi,
>
> std::min accepts only two arguments. When I have more than two
> arguments to compare, it becomes inconvenient. I'm wondering it is
> possible to added a min function that accepts any number of arguments
> in the future version of boost?

There's always std::min_element :-)

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk