refactor: rename unit_constants to references

Addresses https://github.com/mpusz/units/pull/261#discussion_r596663522.
This commit is contained in:
Johel Ernesto Guerrero Peña
2021-03-18 22:37:25 +01:00
committed by Mateusz Pusz
parent 1068f7d182
commit 018c5837f9
64 changed files with 128 additions and 128 deletions
+2 -2
View File
@@ -46,10 +46,10 @@ constexpr auto operator"" _q_rad(long double l) { return angle<radian, long doub
} // namespace literals
inline namespace unit_constants {
inline namespace references {
inline constexpr auto rad = reference<dim_angle<>, radian>{};
} // namespace unit_constants
} // namespace references
} // namespace units
+2 -2
View File
@@ -58,7 +58,7 @@ using reference_divide = detail::reference_divide_impl<
* This type is intended to be used in the unit constants definition:
*
* @code{.cpp}
* namespace unit_constants {
* namespace references {
*
* inline constexpr auto m = reference<dim_length, metre>{};
* inline constexpr auto km = reference<dim_length, kilometre>{};
@@ -69,7 +69,7 @@ using reference_divide = detail::reference_divide_impl<
* Unit constants simplify quantity creation:
*
* @code{.cpp}
* using namespace units::isq::si::unit_constants;
* using namespace units::isq::si::references;
*
* auto d = 123 * m;
* auto v = 70 * km / h;