xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/common/platform/api/quiche_containers.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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_COMMON_PLATFORM_API_QUICHE_CONTAINERS_H_
6 #define QUICHE_COMMON_PLATFORM_API_QUICHE_CONTAINERS_H_
7 
8 #include "quiche_platform_impl/quiche_containers_impl.h"
9 
10 namespace quiche {
11 
12 // An ordered container optimized for small sets.
13 // An implementation with O(n) mutations might be chosen
14 // in case it has better memory usage and/or faster access.
15 //
16 // DOES NOT GUARANTEE POINTER OR ITERATOR STABILITY!
17 template <typename Key, typename Compare = std::less<Key>>
18 using QuicheSmallOrderedSet = QuicheSmallOrderedSetImpl<Key, Compare>;
19 
20 }  // namespace quiche
21 
22 #endif  // QUICHE_COMMON_PLATFORM_API_QUICHE_CONTAINERS_H_
23