5#include "enum_metadata.hpp"
6#include "../macros.hpp"
9hi_export_module(hikogui.utility.policy);
11hi_export
namespace hi {
inline namespace v1 {
18enum class policy { unspecified, low_power, high_performance };
21constexpr auto policy_metadata = enum_metadata{
22 policy::unspecified,
"unspecified",
23 policy::low_power,
"low-power",
24 policy::high_performance,
"high-performance"
32struct std::formatter<
hi::policy, char> : std::formatter<std::string_view, char> {
33 auto format(
hi::policy const& t,
auto& fc)
const
35 return std::formatter<std::string_view, char>::format(hi::policy_metadata[t], fc);
The HikoGUI namespace.
Definition array_generic.hpp:20
policy
The performance policy to use.
Definition policy.hpp:18
DOXYGEN BUG.
Definition algorithm_misc.hpp:20