Home | History | Annotate | Download | only in quic

Lines Matching refs:Collection

34 template <class Collection>
35 const typename Collection::value_type::second_type&
36 FindOrDie(const Collection& collection,
37 const typename Collection::value_type::first_type& key) {
38 typename Collection::const_iterator it = collection.find(key);
39 CHECK(it != collection.end()) << "Map key not found: " << key;
44 template <class Collection>
45 typename Collection::value_type::second_type&
46 FindOrDie(Collection& collection, // NOLINT
47 const typename Collection::value_type::first_type& key) {
48 typename Collection::iterator it = collection.find(key);
49 CHECK(it != collection.end()) << "Map key not found: " << key;
55 template <class Collection>
56 const typename Collection::value_type::second_type*
57 FindOrNull(const Collection& collection,
58 const typename Collection::value_type::first_type& key) {
59 typename Collection::const_iterator it = collection.find(key);
60 if (it == collection.end()) {
67 template <class Collection>
68 typename Collection::value_type::second_type*
69 FindOrNull(Collection& collection, // NOLINT
70 const typename Collection::value_type::first_type& key) {
71 typename Collection::iterator it = collection.find(key);
72 if (it == collection.end()) {