diff --git a/include/xo/unit/quantity.hpp b/include/xo/unit/quantity.hpp index a386b843..b3da2d53 100644 --- a/include/xo/unit/quantity.hpp +++ b/include/xo/unit/quantity.hpp @@ -393,6 +393,24 @@ namespace xo { template inline constexpr auto gigatonnes(Repr x) { return quantity(x); } + /** @brief a quantity representing 1 picogram of mass, with compile-time unit representation **/ + static constexpr auto picogram = picograms(1); + /** @brief a quantity representing 1 nanogram of mass, with compile-time unit representation **/ + static constexpr auto nanogram = nanograms(1); + /** @brief a quantity representing 1 microgram of mass, with compile-time unit representation **/ + static constexpr auto microgram = micrograms(1); + /** @brief a quantity representing 1 milligram of mass, with compile-time unit representation **/ + static constexpr auto milligram = milligrams(1); + /** @brief a quantity representing 1 gram of mass, with compile-time unit representation **/ + static constexpr auto gram = grams(1); + /** @brief a quantity representing 1 kilogram of mass, with compile-time unit representation **/ + static constexpr auto kilogram = kilograms(1); + /** @brief a quantity representing 1 metric tonne of mass, with compile-time unit representation **/ + static constexpr auto tonne = tonnes(1); + /** @brief a quantity representing 1 metric kilotonne of mass, with compile-time unit representation **/ + static constexpr auto kilotonne = kilotonnes(1); + } /*namespace qty*/ + // ----- distance ----- template