Subject: Re: [boost] Boost.RangeEx: contains?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-02-22 14:31:30
Marcus Lindblom wrote:
> I'm just missing basic "contains/contains_if" function, that searches
> and retursn a bool on whether an item is in a range. (i.e. find(rng, v)
> != end(rng) ). I've found those are quite useful. Perhaps this just has
> another name and I overlooked it?
What about !empty(rng | filtered(_1 == v)).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk