$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2006-03-04 09:04:10
Jeff Flinn wrote:
> Delfin Rojas wrote:
>>> yinglcs2_at_[hidden] wrote
>>>
>>> I have a vector of Rect. and I would like to copy those where
>>> Rect::getX() equals to certain value.
> ...
>> It seems what you want is copy_if. transform won't help in this case
>> because it will execute the predicate on every element and assign its
>> return value to the output iterator, try this (not tested):
>
> Or the OP can use transform with filter_iterator form the iterator
I should have said std::copy.
> library.
> See http://www.boost.org/libs/iterator/doc/filter_iterator.html
>
> Jeff Flinn
Thanks, Jeff