[LLVMdev] std::remove

Paolo Invernizzi arathorn at fastwebnet.it
Tue Oct 12 09:05:37 PDT 2004


Hi all,

In llvm/include/llvm/Analysis/IntervalIterator.h "remove" is the 
std::remove?

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




More information about the llvm-dev mailing list