36 template<arithmetic_c T, enumeration_c unit_t>
42 operator T()
const noexcept;
61 template<arithmetic_c T, enumeration_c unit_t>
64 template<arithmetic_c T, enumeration_c unit_t>
67 template<arithmetic_c T, enumeration_c unit_t>
77 template<arithmetic_c T, enumeration_c unit_t>
88 template<arithmetic_c T, enumeration_c unit_t>
100 template<arithmetic_c T, enumeration_c unit_t,
class char_t>
101 std::optional<unit<T, unit_t>>
unit_from_string(basic_string_view<char_t> svValue) noexcept;
105 template<qx::arithmetic_c T, qx::enumeration_c unit_t>
106 struct std::formatter<qx::unit<T, unit_t>, qx::char_type>
108 template<
class format_parse_context_t>
109 constexpr
auto parse(format_parse_context_t& context) noexcept;
111 template<
class format_context_type_t>
112 constexpr
auto format(
const qx::unit<T, unit_t>& unit, format_context_type_t& ctx)
const noexcept;
115 std::formatter<T, qx::char_type> valueFormatter;
std::optional< unit< T, unit_t > > unit_from_string(basic_string_view< char_t > svValue) noexcept
Creates a unit from a string.
unit< T, unit_t > normalize_unit(unit< T, unit_t > unit) noexcept
The function returns the closest value greater than one from the SI for the unit of measurement.