Lines Matching refs:Collection
57 template <class Collection>
58 const typename Collection::value_type::second_type&
59 FindOrDie(const Collection& collection, in FindOrDie()
60 const typename Collection::value_type::first_type& key) { in FindOrDie()
61 typename Collection::const_iterator it = collection.find(key); in FindOrDie()
69 template <class Collection>
70 const typename Collection::value_type::second_type&
71 FindWithDefault(const Collection& collection, in FindWithDefault()
72 const typename Collection::value_type::first_type& key, in FindWithDefault()
73 const typename Collection::value_type::second_type& value) { in FindWithDefault()
74 typename Collection::const_iterator it = collection.find(key); in FindWithDefault()
85 template <class Collection>
87 Collection * const collection, in InsertIfNotPresent()
88 const typename Collection::value_type::first_type& key, in InsertIfNotPresent()
89 const typename Collection::value_type::second_type& value) { in InsertIfNotPresent()
90 pair<typename Collection::iterator, bool> ret = in InsertIfNotPresent()
91 collection->insert(typename Collection::value_type(key, value)); in InsertIfNotPresent()
98 template <class Collection>
99 typename Collection::value_type::second_type*
100 FindOrNull(Collection& collection, // NOLINT in FindOrNull()
101 const typename Collection::value_type::first_type& key) { in FindOrNull()
102 typename Collection::iterator it = collection.find(key); in FindOrNull()
111 template <class Collection, class Key>
112 bool ContainsKey(const Collection& collection, const Key& key) { in ContainsKey()
113 typename Collection::const_iterator it = collection.find(key); in ContainsKey()
119 template<class Collection>
120 void InsertOrDie(Collection* const collection, in InsertOrDie()
121 const typename Collection::value_type::first_type& key, in InsertOrDie()
122 const typename Collection::value_type::second_type& data) { in InsertOrDie()
123 typedef typename Collection::value_type value_type; in InsertOrDie()