You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/components/settings/categories.hpp

29 lines
717 B
C++

#ifndef COMPONENTS_SETTINGS_CATEGORIES_H
#define COMPONENTS_SETTINGS_CATEGORIES_H
#include <map>
#include <set>
#include <string>
#include <string_view>
#include <utility>
namespace Settings
{
struct Less
{
using is_transparent = void;
bool operator()(const std::pair<std::string_view, std::string_view>& l,
const std::pair<std::string_view, std::string_view>& r) const
{
return l < r;
}
};
using CategorySetting = std::pair<std::string, std::string>;
using CategorySettingVector = std::set<CategorySetting>;
using CategorySettingValueMap = std::map<CategorySetting, std::string, Less>;
}
#endif // COMPONENTS_SETTINGS_CATEGORIES_H