================
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:150
@@ +149,3 @@
+      if (Predicate(Bindings[i])) {
+        Result.push_back(Bindings[i]);
+      }
----------------
Alexander Kornienko wrote:
> It seems that you're trying to re-invent std::remove_if here ;)
> 
> If it's done for performance reasons, then I'm not sure .swap is particularly 
> fast for SmallVector when using in-object storage.
I was thinking of this too but can we use std::remove_if on SmallVector?


http://llvm-reviews.chandlerc.com/D1009
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to