
17 Nov
2010
17 Nov
'10
9:05 p.m.
----- Original Message ----- From: "Jeffrey Lee Hellrung, Jr." <jhellrung@ucla.edu> To: <boost@lists.boost.org> Sent: Wednesday, November 17, 2010 9:58 PM Subject: Re: [boost] for_each abstraction
I was imagining something slightly different, where the for_each functions are more tightly coupled to the sequence types. In other words, std::vector and thrust::device_vector both have a for_each member function (or maybe a less intrusive for_each free function found, for example, via ADL):
std::vector< double > vec1; vec1.for_each(op()); thrust::device_vector< double > vec2; vec2.for_each(op());
Please, don't add algorithms in the containers. Vicente