Lines Matching refs:collection
75 FindOrNull(const Collection& collection,
77 typename Collection::const_iterator it = collection.find(key);
78 if (it == collection.end()) {
129 FindPtrOrNull(const Collection& collection,
131 typename Collection::const_iterator it = collection.find(key);
132 if (it == collection.end()) {
139 // Returns true if the key is in the collection.
141 bool ContainsKey(const Collection& collection, const Key& key) {
142 return collection.find(key) != collection.end();
150 bool InsertIfNotPresent(Collection * const collection,
153 collection->insert(typename Collection::value_type(key, value));