Subject: Re: [boost] [Algorithm] contains(v, 1)
From: Olaf van der Spek (ml_at_[hidden])
Date: 2018-06-04 07:16:28
On Sun, Jun 3, 2018 at 4:45 PM, Jean-Philippe DUFRAIGNE via Boost
> On 5/31/18 3:14 AM, Olaf van der Spek via Boost wrote:
>> vector<int> v;
>> contains(v, 1);
>> This doesn't work as contains expects two ranges (AFAIK).
>> Is there some other function that's usable for this purpose?
>> Should contains support a value for argument 2?
> This algorithm exists: boost::any_of_equal
Too bad ISO C++ didn't include the _equal and range variants.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk