mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
docs: "Dimension-Specific Aliases" fixed
This commit is contained in:
@@ -38,17 +38,17 @@ type to ``double`` by default::
|
||||
namespace si {
|
||||
|
||||
template<Unit U, Representation Rep = double>
|
||||
using q_length = quantity<dim_length, U, Rep>;
|
||||
using length = quantity<dim_length, U, Rep>;
|
||||
|
||||
template<Unit U, Representation Rep = double>
|
||||
using q_speed = quantity<dim_speed, U, Rep>;
|
||||
using speed = quantity<dim_speed, U, Rep>;
|
||||
|
||||
}
|
||||
|
||||
Thanks to that, the above example can be rewritten as follows::
|
||||
|
||||
si::q_length<si::kilometre> d(123);
|
||||
si::q_speed<si::kilometre_per_hour, int> v(70);
|
||||
si::length<si::kilometre> d(123);
|
||||
si::speed<si::kilometre_per_hour, int> v(70);
|
||||
|
||||
Quantity References
|
||||
+++++++++++++++++++
|
||||
|
Reference in New Issue
Block a user