|
Boost Users : |
Subject: Re: [Boost-users] Using boost::bind with stl algorithms
From: Lars Viklund (zao_at_[hidden])
Date: 2010-08-23 14:39:20
On Mon, Aug 23, 2010 at 01:28:35PM -0400, lfrfly_at_[hidden] wrote:
> It's worth noting that if your compiler supports C++0x lambdas (gcc 4.5+
> or VS2010), then the predicate becomes
> std::remove_copy_if(eventNames.begin(),eventNames.end(),
> std::back_inserter(out),
> [&insertedEvents](const std::string &s){ return insertedEvents.find(s)
> != insertedEvents.end(); });
> and there is no need for Boost involvement at all.
And of course, then you have std::bind too.
-- Lars Viklund | zao_at_[hidden]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net