docs: q_ prefixes added for "Dimension-Specific Aliases"

This commit is contained in:
Mateusz Pusz
2021-04-06 14:44:24 +02:00
parent c3659dbb47
commit b842c3f94a

View File

@@ -38,17 +38,17 @@ type to ``double`` by default::
namespace si {
template<Unit U, Representation Rep = double>
using length = quantity<dim_length, U, Rep>;
using q_length = quantity<dim_length, U, Rep>;
template<Unit U, Representation Rep = double>
using speed = quantity<dim_speed, U, Rep>;
using q_speed = quantity<dim_speed, U, Rep>;
}
Thanks to that, the above example can be rewritten as follows::
si::length<si::kilometre> d(123);
si::speed<si::kilometre_per_hour, int> v(70);
si::q_length<si::kilometre> d(123);
si::q_speed<si::kilometre_per_hour, int> v(70);
Quantity References
+++++++++++++++++++