template<arithmetic_c T, enumeration_c unit_t>
struct qx::unit< T, unit_t >
std::optional<qx::unit<int, qx::units::data>> optResult =
qx::unit_from_string<int, qx::units::data, qx::char_type>(QX_TEXT("20KiB"));
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.
requires static format_acceptable_args_c< char_type, args_t... > basic_string static_format(const format_string_type< std::type_identity_t< args_t >... > sFormat, args_t &&... args)
Create a string by formatting it with the format string and the args.
- Template Parameters
-
T | - floating point or integral type |
unit_t | - unit type enum |
Definition at line 37 of file base.h.