xref: /aosp_15_r20/external/cronet/components/prefs/pref_name_set.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2022 The Chromium Authors
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 COMPONENTS_PREFS_PREF_NAME_SET_H_
6 #define COMPONENTS_PREFS_PREF_NAME_SET_H_
7 
8 #include <functional>
9 #include <set>
10 #include <string>
11 
12 // String set that allows transparent lookup by string-comparable types like
13 // `base::StringPiece` without requiring conversion to `std::string`.
14 using PrefNameSet = std::set<std::string, std::less<>>;
15 
16 #endif  // COMPONENTS_PREFS_PREF_NAME_SET_H_
17