diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/stl_util-inl.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/base/stl_util-inl.h b/base/stl_util-inl.h index 70fa69e..54b7b29 100644 --- a/base/stl_util-inl.h +++ b/base/stl_util-inl.h @@ -447,11 +447,4 @@ std::vector<T> SetToVector(const std::set<T>& values) { return result; } -// Test to see if a set, map, hash_set or hash_map contains a particular key. -// Returns true if the key is in the collection. -template <typename Collection, typename Key> -bool ContainsKey(const Collection& collection, const Key& key) { - return collection.find(key) != collection.end(); -} - #endif // BASE_STL_UTIL_INL_H_ |