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"
30template<
typename CharT>
31struct std::formatter<
hi::policy, CharT> : std::formatter<std::string_view, CharT> {
32 auto format(
hi::policy const& t,
auto& fc)
const
34 return std::formatter<std::string_view, CharT>::format(hi::policy_metadata[t], fc);
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
policy
The performance policy to use.
Definition policy.hpp:18