Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1696)

Unified Diff: src/list.h

Issue 9104: Dispatch tables (Closed)
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/jsregexp.cc ('K') | « src/jsregexp-inl.h ('k') | src/list-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/list.h
diff --git a/src/list.h b/src/list.h
index 1fe9067631c972e1afeb79767bfbcf1214140626..6946b332c5e3935923a5a1348803ebc68b952e40 100644
--- a/src/list.h
+++ b/src/list.h
@@ -95,6 +95,8 @@ class List {
// Drops all but the first 'pos' elements from the list.
INLINE(void Rewind(int pos));
+ bool Contains(T& elm);
+
// Iterate through all list entries, starting at index 0.
void Iterate(void (*callback)(T* x));
« src/jsregexp.cc ('K') | « src/jsregexp-inl.h ('k') | src/list-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698