
23 Feb
2009
23 Feb
'09
11:45 a.m.
Thorsten Ottosen wrote:
Eric Niebler skrev:
Mathias Gaunard wrote:
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)).
Sure, and most algorithms can be implemented in terms of fold.
Can you enlight us about what the fold algorithm is?
Sorry, std::accumulate. -- Eric Niebler BoostPro Computing http://www.boostpro.com