4 Jun
2018
4 Jun
'18
7:16 a.m.
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:
Hi,
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?
Gr,
Hi,
This algorithm exists: boost::any_of_equal https://www.boost.org/doc/libs/1_67_0/libs/algorithm/doc/html/the_boost_algo...
Thanks! Too bad ISO C++ didn't include the _equal and range variants. Gr, -- Olaf