From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2000-10-17 16:22:54


> The second thing that is missing is an "_if" version of for_each
> and transform that would work something like
>
> while (first != last){ if (pred(*first)) f(*first); ++first;}
>
> for the single argument for_each_if.
>
Another case for Lambda!

  for_each(first, last, if_then(bind(pred,free1),
        
bind(f,free1)) );

  Yours,
  -gary-

gary.powell_at_[hidden]