| 96 | // Returns true if and only if the given collection contains the given key. |
| 97 | template <class Collection, class Key> |
| 98 | bool ContainsKey(const Collection& collection, const Key& key) { |
| 99 | return collection.find(key) != collection.end(); |
| 100 | } |
| 101 | |
| 102 | // Inserts `value` into `set`. Dies if it was already present. |
| 103 | template <class Set, class Value> |
no test coverage detected