Lines Matching defs:collection
58 FindOrDie(const Collection& collection,
60 typename Collection::const_iterator it = collection.find(key);
61 CHECK(it != collection.end()) << "Map key not found: " << key;
70 FindWithDefault(const Collection& collection,
73 typename Collection::const_iterator it = collection.find(key);
74 if (it == collection.end()) {
86 Collection * const collection,
90 collection->insert(typename Collection::value_type(key, value));
99 FindOrNull(Collection& collection, // NOLINT
101 typename Collection::iterator it = collection.find(key);
102 if (it == collection.end()) {
109 // Returns true if the key is in the collection.
111 bool ContainsKey(const Collection& collection, const Key& key) {
112 typename Collection::const_iterator it = collection.find(key);
113 return it != collection.end();
119 void InsertOrDie(Collection* const collection,
123 CHECK(collection->insert(value_type(key, data)).second)