[LLVMdev] std::remove

Chris Lattner sabre at nondot.org
Tue Oct 12 09:28:42 PDT 2004


On Tue, 12 Oct 2004, Paolo Invernizzi wrote:

> Hi all,
>
> In llvm/include/llvm/Analysis/IntervalIterator.h "remove" is the
> std::remove?

Yup, applied:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20041011/019172.html

Thanks!

-Chris

> Index: IntervalIterator.h
> ===================================================================
> RCS file: /var/cvs/llvm/llvm/include/llvm/Analysis/IntervalIterator.h,v
> retrieving revision 1.18
> diff -u -r1.18 IntervalIterator.h
> --- IntervalIterator.h  3 Sep 2004 18:19:51 -0000       1.18
> +++ IntervalIterator.h  12 Oct 2004 16:04:37 -0000
> @@ -220,7 +220,7 @@
>
>        if (Int->isSuccessor(NodeHeader)) {
>         // If we were in the successor list from before... remove from
> succ list
> -       Int->Successors.erase(remove(Int->Successors.begin(),
> +       Int->Successors.erase(std::remove(Int->Successors.begin(),
>                                      Int->Successors.end(), NodeHeader),
>                               Int->Successors.end());
>        }
>
> ---
> Paolo Invernizzi
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/




More information about the llvm-dev mailing list