Index: base/values.h |
diff --git a/base/values.h b/base/values.h |
index a30791bc6357c671f56c02c0c39e61027c11aabb..17c63e46c9e6244b3b68d94a273598469d495c66 100644 |
--- a/base/values.h |
+++ b/base/values.h |
@@ -418,6 +418,10 @@ class BASE_EXPORT ListValue : public Value { |
// Returns true if successful, or false if the index was out of range. |
bool Insert(size_t index, Value* in_value); |
+ // Searches for the first instance of |value| in the list. |
Mattias Nissler (ping if slow)
2011/09/15 13:40:39
Maybe mention that this compares using Equals()?
pastarmovj
2011/09/16 08:03:49
Done.
|
+ // Returns a const_iterator to the found item or to end() if none exists. |
+ const_iterator Find(const Value& value) const; |
+ |
// Swaps contents with the |other| list. |
void Swap(ListValue* other) { |
list_.swap(other->list_); |