| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_QUIC_PLATFORM_IMPL_QUIC_MAP_UTIL_IMPL_H_ |
| 6 #define NET_QUIC_PLATFORM_IMPL_QUIC_MAP_UTIL_IMPL_H_ |
| 7 |
| 8 #include "base/stl_util.h" |
| 9 |
| 10 namespace net { |
| 11 |
| 12 template <class Collection, class Key> |
| 13 bool QuicContainsKeyImpl(const Collection& collection, const Key& key) { |
| 14 return base::ContainsKey(collection, key); |
| 15 } |
| 16 |
| 17 template <typename Collection, typename Value> |
| 18 bool QuicContainsValueImpl(const Collection& collection, const Value& value) { |
| 19 return base::ContainsValue(collection, value); |
| 20 } |
| 21 |
| 22 } // namespace net |
| 23 |
| 24 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_MAP_UTIL_IMPL_H_ |
| OLD | NEW |