diff --git a/docs/papers/3045R1_quantities_and_units_library.html b/docs/papers/3045R1_quantities_and_units_library.html index 556be05..85a6f86 100644 --- a/docs/papers/3045R1_quantities_and_units_library.html +++ b/docs/papers/3045R1_quantities_and_units_library.html @@ -499,7 +499,7 @@

Contents

@@ -995,26 +1027,25 @@

Contents

1 Revision history

-

1.1 Changes since [P3045R0]

+

1.1 Changes since [P3045R0?]

15.4.4.1 Default formatting

-

To format quantity values, the -formatting facility uses quantity-format-spec. -If left empty, the default formatting is applied. The same default -formatting is also applied to the output streams. This is why the -following code lines produce the same output:

+

To format quantity values, +the formatting facility uses +quantity-format-spec. If left +empty, the default formatting is applied. The same default formatting is +also applied to the output streams. This is why the following code lines +produce the same output:

std::cout << "Distance: " << 123 * km << "\n";
 std::cout << std::format("Distance: {}\n", 123 * km);
 std::cout << std::format("Distance: {:%N%?%U}\n", 123 * km);
-

Please note that for some quantities the {:%N %U} -format may provide a different output than the default one, as some -units have space_before_unit_symbol +

Please note that for some quantities the +{:%N %U} format may provide a +different output than the default one, as some units have +space_before_unit_symbol customization point explicitly set to -false (e.g., -% and -°).

+false (e.g., +% and +°).

15.4.4.2 Quantity numerical value, unit symbol, or both?

Thanks to the grammar provided above, the user can easily decide to @@ -5566,17 +5635,17 @@

-

placement-type -greatly simplify element access to the elements of the quantity. Without -them the second case above would require the following:

+

placement-type greatly +simplify element access to the elements of the quantity. Without them +the second case above would require the following:

const auto q = 120 * km / h;
 std::println("Speed:\n- number: {}\n- unit: {}\n- dimension: {}",
              q.numerical_value_ref_in(q.unit), q.unit, q.dimension);
-

default-spec -is crutial to provide formatting of user-defined representation types. -Initially, [mp-units] library was providing +

default-spec is crutial to +provide formatting of user-defined representation types. Initially, +[mp-units] library was providing numerical value modifiers inplace of its format specification similarly -to std::chrono::duration +to std::chrono::duration formatter. However, it: