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 QUICHE_QUIC_PLATFORM_API_QUIC_MAP_UTIL_H_ 6 #define QUICHE_QUIC_PLATFORM_API_QUIC_MAP_UTIL_H_ 7 8 #include "net/quic/platform/impl/quic_map_util_impl.h" 9 10 namespace quic { 11 12 template <class Collection, class Key> QuicContainsKey(const Collection & collection,const Key & key)13bool QuicContainsKey(const Collection& collection, const Key& key) { 14 return QuicContainsKeyImpl(collection, key); 15 } 16 17 template <typename Collection, typename Value> QuicContainsValue(const Collection & collection,const Value & value)18bool QuicContainsValue(const Collection& collection, const Value& value) { 19 return QuicContainsValueImpl(collection, value); 20 } 21 22 } // namespace quic 23 24 #endif // QUICHE_QUIC_PLATFORM_API_QUIC_MAP_UTIL_H_ 25