| 294 | // Returns true iff the given collection contains the given key. |
| 295 | template <class Collection, class Key> |
| 296 | bool ContainsKey(const Collection& collection, const Key& key) { |
| 297 | return collection.find(key) != collection.end(); |
| 298 | } |
| 299 | |
| 300 | // Returns true iff the given collection contains the given key-value pair. |
| 301 | template <class Collection, class Key, class Value> |