Boost logo

Boost :

Subject: [boost] [Algorithm] contains(v, 1)
From: Olaf van der Spek (ml_at_[hidden])
Date: 2018-05-31 10:14:34


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,

-- 
Olaf

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