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 #include <string_view> 12 13 // String set that allows transparent lookup by string-comparable types like 14 // `std::string_view` without requiring conversion to `std::string`. 15 using PrefNameSet = std::set<std::string, std::less<>>; 16 17 #endif // COMPONENTS_PREFS_PREF_NAME_SET_H_ 18