forked from mpusz/mp-units
docs: "Dimension-Specific Aliases" fixed
This commit is contained in:
@@ -38,17 +38,17 @@ type to ``double`` by default::
|
|||||||
namespace si {
|
namespace si {
|
||||||
|
|
||||||
template<Unit U, Representation Rep = double>
|
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>
|
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::
|
Thanks to that, the above example can be rewritten as follows::
|
||||||
|
|
||||||
si::q_length<si::kilometre> d(123);
|
si::length<si::kilometre> d(123);
|
||||||
si::q_speed<si::kilometre_per_hour, int> v(70);
|
si::speed<si::kilometre_per_hour, int> v(70);
|
||||||
|
|
||||||
Quantity References
|
Quantity References
|
||||||
+++++++++++++++++++
|
+++++++++++++++++++
|
||||||
|
Reference in New Issue
Block a user