diff --git a/au/units/amperes.hh b/au/units/amperes.hh index 31dfa072..411d5953 100644 --- a/au/units/amperes.hh +++ b/au/units/amperes.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" namespace au { @@ -32,4 +33,8 @@ struct Amperes : UnitImpl, AmperesLabel { constexpr auto ampere = SingularNameFor{}; constexpr auto amperes = QuantityMaker{}; +namespace symbols { +constexpr auto A = SymbolFor{}; +} + } // namespace au diff --git a/au/units/bars.hh b/au/units/bars.hh index a6380a3f..c8973c3d 100644 --- a/au/units/bars.hh +++ b/au/units/bars.hh @@ -16,6 +16,7 @@ #include "au/prefix.hh" #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/pascals.hh" namespace au { @@ -34,4 +35,7 @@ struct Bars : decltype(Kilo{} * mag<100>()), BarsLabel { constexpr auto bar = SingularNameFor{}; constexpr auto bars = QuantityMaker{}; +namespace symbols { +constexpr auto bar = SymbolFor{}; +} // namespace symbols } // namespace au diff --git a/au/units/becquerel.hh b/au/units/becquerel.hh index 39980715..c3869248 100644 --- a/au/units/becquerel.hh +++ b/au/units/becquerel.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/seconds.hh" namespace au { @@ -32,4 +33,7 @@ struct Becquerel : UnitInverseT, BecquerelLabel { }; constexpr auto becquerel = QuantityMaker{}; +namespace symbols { +constexpr auto Bq = SymbolFor{}; +} } // namespace au diff --git a/au/units/bits.hh b/au/units/bits.hh index dc6b581c..8af4344e 100644 --- a/au/units/bits.hh +++ b/au/units/bits.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" namespace au { @@ -32,4 +33,7 @@ struct Bits : UnitImpl, BitsLabel { constexpr auto bit = SingularNameFor{}; constexpr auto bits = QuantityMaker{}; +namespace symbols { +constexpr auto b = SymbolFor{}; +} } // namespace au diff --git a/au/units/bytes.hh b/au/units/bytes.hh index 6c87c28d..677d21c1 100644 --- a/au/units/bytes.hh +++ b/au/units/bytes.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/bits.hh" namespace au { @@ -33,4 +34,7 @@ struct Bytes : decltype(Bits{} * mag<8>()), BytesLabel { constexpr auto byte = SingularNameFor{}; constexpr auto bytes = QuantityMaker{}; +namespace symbols { +constexpr auto B = SymbolFor{}; +} } // namespace au diff --git a/au/units/candelas.hh b/au/units/candelas.hh index e48a3ebf..0d42b22a 100644 --- a/au/units/candelas.hh +++ b/au/units/candelas.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" namespace au { @@ -32,4 +33,7 @@ struct Candelas : UnitImpl, CandelasLabel { constexpr auto candela = SingularNameFor{}; constexpr auto candelas = QuantityMaker{}; +namespace symbols { +constexpr auto cd = SymbolFor{}; +} } // namespace au diff --git a/au/units/celsius.hh b/au/units/celsius.hh index 02702147..980bea6d 100644 --- a/au/units/celsius.hh +++ b/au/units/celsius.hh @@ -17,6 +17,7 @@ #include "au/prefix.hh" #include "au/quantity.hh" #include "au/quantity_point.hh" +#include "au/unit_symbol.hh" #include "au/units/kelvins.hh" namespace au { @@ -40,4 +41,7 @@ constexpr auto celsius_pt = QuantityPointMaker{}; "`celsius()` is ambiguous. Use `celsius_pt()` for _points_, or `celsius_qty()` for " "_quantities_")]] constexpr auto celsius = QuantityMaker{}; +namespace symbols { +constexpr auto degC_qty = SymbolFor{}; +} } // namespace au diff --git a/au/units/coulombs.hh b/au/units/coulombs.hh index 7dec24fc..e5df9ded 100644 --- a/au/units/coulombs.hh +++ b/au/units/coulombs.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/amperes.hh" #include "au/units/seconds.hh" @@ -34,4 +35,7 @@ struct Coulombs : decltype(Amperes{} * Seconds{}), CoulombsLabel { constexpr auto coulomb = SingularNameFor{}; constexpr auto coulombs = QuantityMaker{}; +namespace symbols { +constexpr auto C = SymbolFor{}; +} } // namespace au diff --git a/au/units/days.hh b/au/units/days.hh index 52625c84..e3222978 100644 --- a/au/units/days.hh +++ b/au/units/days.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/hours.hh" namespace au { @@ -33,4 +34,7 @@ struct Days : decltype(Hours{} * mag<24>()), DaysLabel { constexpr auto day = SingularNameFor{}; constexpr auto days = QuantityMaker{}; +namespace symbols { +constexpr auto d = SymbolFor{}; +} } // namespace au diff --git a/au/units/degrees.hh b/au/units/degrees.hh index d1fb2995..b32632e9 100644 --- a/au/units/degrees.hh +++ b/au/units/degrees.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/radians.hh" namespace au { @@ -33,4 +34,7 @@ struct Degrees : decltype(Radians{} * PI / mag<180>()), DegreesLabel { constexpr auto degree = SingularNameFor{}; constexpr auto degrees = QuantityMaker{}; +namespace symbols { +constexpr auto deg = SymbolFor{}; +} } // namespace au diff --git a/au/units/fahrenheit.hh b/au/units/fahrenheit.hh index a51bd782..01fe5ea0 100644 --- a/au/units/fahrenheit.hh +++ b/au/units/fahrenheit.hh @@ -17,6 +17,7 @@ #include "au/prefix.hh" #include "au/quantity.hh" #include "au/quantity_point.hh" +#include "au/unit_symbol.hh" #include "au/units/kelvins.hh" namespace au { @@ -42,4 +43,7 @@ constexpr auto fahrenheit_pt = QuantityPointMaker{}; "`fahrenheit()` is ambiguous. Use `fahrenheit_pt()` for _points_, or `fahrenheit_qty()` for " "_quantities_")]] constexpr auto fahrenheit = QuantityMaker{}; +namespace symbols { +constexpr auto degF_qty = SymbolFor{}; +} } // namespace au diff --git a/au/units/farads.hh b/au/units/farads.hh index f35b445e..6cf5089a 100644 --- a/au/units/farads.hh +++ b/au/units/farads.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/coulombs.hh" #include "au/units/volts.hh" @@ -34,4 +35,7 @@ struct Farads : decltype(Coulombs{} / Volts{}), FaradsLabel { constexpr auto farad = SingularNameFor{}; constexpr auto farads = QuantityMaker{}; +namespace symbols { +constexpr auto F = SymbolFor{}; +} } // namespace au diff --git a/au/units/fathoms.hh b/au/units/fathoms.hh index d5fdafad..b73e75d4 100644 --- a/au/units/fathoms.hh +++ b/au/units/fathoms.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/feet.hh" namespace au { @@ -33,4 +34,7 @@ struct Fathoms : decltype(Feet{} * mag<6>()), FathomsLabel { constexpr auto fathom = SingularNameFor{}; constexpr auto fathoms = QuantityMaker{}; +namespace symbols { +constexpr auto ftm = SymbolFor{}; +} } // namespace au diff --git a/au/units/feet.hh b/au/units/feet.hh index 77943f7e..f6e94466 100644 --- a/au/units/feet.hh +++ b/au/units/feet.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/inches.hh" namespace au { @@ -33,4 +34,7 @@ struct Feet : decltype(Inches{} * mag<12>()), FeetLabel { constexpr auto foot = SingularNameFor{}; constexpr auto feet = QuantityMaker{}; +namespace symbols { +constexpr auto ft = SymbolFor{}; +} } // namespace au diff --git a/au/units/furlongs.hh b/au/units/furlongs.hh index 9e295a47..ff40fc53 100644 --- a/au/units/furlongs.hh +++ b/au/units/furlongs.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/miles.hh" namespace au { @@ -33,4 +34,7 @@ struct Furlongs : decltype(Miles{} / mag<8>()), FurlongsLabel { constexpr auto furlong = SingularNameFor{}; constexpr auto furlongs = QuantityMaker{}; +namespace symbols { +constexpr auto fur = SymbolFor{}; +} } // namespace au diff --git a/au/units/grams.hh b/au/units/grams.hh index 46870918..005992dc 100644 --- a/au/units/grams.hh +++ b/au/units/grams.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" namespace au { @@ -32,4 +33,7 @@ struct Grams : UnitImpl, GramsLabel { constexpr auto gram = SingularNameFor{}; constexpr auto grams = QuantityMaker{}; +namespace symbols { +constexpr auto g = SymbolFor{}; +} } // namespace au diff --git a/au/units/grays.hh b/au/units/grays.hh index 74e797a8..9c8a45dc 100644 --- a/au/units/grays.hh +++ b/au/units/grays.hh @@ -16,6 +16,7 @@ #include "au/prefix.hh" #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/grams.hh" #include "au/units/joules.hh" @@ -35,4 +36,7 @@ struct Grays : decltype(Joules{} / Kilo{}), GraysLabel { constexpr auto gray = SingularNameFor{}; constexpr auto grays = QuantityMaker{}; +namespace symbols { +constexpr auto Gy = SymbolFor{}; +} } // namespace au diff --git a/au/units/henries.hh b/au/units/henries.hh index 9a93a3cb..312312e0 100644 --- a/au/units/henries.hh +++ b/au/units/henries.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/amperes.hh" #include "au/units/webers.hh" @@ -34,4 +35,7 @@ struct Henries : decltype(Webers{} / Amperes{}), HenriesLabel { constexpr auto henry = SingularNameFor{}; constexpr auto henries = QuantityMaker{}; +namespace symbols { +constexpr auto H = SymbolFor{}; +} } // namespace au diff --git a/au/units/hertz.hh b/au/units/hertz.hh index 11bfce35..a44b22a3 100644 --- a/au/units/hertz.hh +++ b/au/units/hertz.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/seconds.hh" namespace au { @@ -32,4 +33,7 @@ struct Hertz : UnitInverseT, HertzLabel { }; constexpr auto hertz = QuantityMaker{}; +namespace symbols { +constexpr auto Hz = SymbolFor{}; +} } // namespace au diff --git a/au/units/hours.hh b/au/units/hours.hh index 29fbf3ce..7b77d807 100644 --- a/au/units/hours.hh +++ b/au/units/hours.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/minutes.hh" namespace au { @@ -33,4 +34,7 @@ struct Hours : decltype(Minutes{} * mag<60>()), HoursLabel { constexpr auto hour = SingularNameFor{}; constexpr auto hours = QuantityMaker{}; +namespace symbols { +constexpr auto h = SymbolFor{}; +} } // namespace au diff --git a/au/units/inches.hh b/au/units/inches.hh index cd98a3a4..cc71994b 100644 --- a/au/units/inches.hh +++ b/au/units/inches.hh @@ -16,6 +16,7 @@ #include "au/prefix.hh" #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/meters.hh" namespace au { @@ -34,4 +35,7 @@ struct Inches : decltype(Centi{} * mag<254>() / mag<100>()), InchesLabel constexpr auto inch = SingularNameFor{}; constexpr auto inches = QuantityMaker{}; +namespace symbols { +constexpr auto in = SymbolFor{}; +} } // namespace au diff --git a/au/units/joules.hh b/au/units/joules.hh index 297bebb1..61c491d1 100644 --- a/au/units/joules.hh +++ b/au/units/joules.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/meters.hh" #include "au/units/newtons.hh" @@ -34,4 +35,7 @@ struct Joules : decltype(Newtons{} * Meters{}), JoulesLabel { constexpr auto joule = SingularNameFor{}; constexpr auto joules = QuantityMaker{}; +namespace symbols { +constexpr auto J = SymbolFor{}; +} } // namespace au diff --git a/au/units/katals.hh b/au/units/katals.hh index 82ef5e95..2357dd29 100644 --- a/au/units/katals.hh +++ b/au/units/katals.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/moles.hh" #include "au/units/seconds.hh" @@ -34,4 +35,7 @@ struct Katals : decltype(Moles{} / Seconds{}), KatalsLabel { constexpr auto katal = SingularNameFor{}; constexpr auto katals = QuantityMaker{}; +namespace symbols { +constexpr auto kat = SymbolFor{}; +} } // namespace au diff --git a/au/units/kelvins.hh b/au/units/kelvins.hh index 4b2043f0..0fe646e1 100644 --- a/au/units/kelvins.hh +++ b/au/units/kelvins.hh @@ -16,6 +16,7 @@ #include "au/quantity.hh" #include "au/quantity_point.hh" +#include "au/unit_symbol.hh" namespace au { @@ -34,4 +35,7 @@ constexpr auto kelvin = SingularNameFor{}; constexpr auto kelvins = QuantityMaker{}; constexpr auto kelvins_pt = QuantityPointMaker{}; +namespace symbols { +constexpr auto K = SymbolFor{}; +} } // namespace au diff --git a/au/units/knots.hh b/au/units/knots.hh index 6afc5f66..af5d3ba1 100644 --- a/au/units/knots.hh +++ b/au/units/knots.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/hours.hh" #include "au/units/nautical_miles.hh" @@ -34,4 +35,7 @@ struct Knots : decltype(NauticalMiles{} / Hours{}), KnotsLabel { constexpr auto knot = SingularNameFor{}; constexpr auto knots = QuantityMaker{}; +namespace symbols { +constexpr auto kn = SymbolFor{}; +} } // namespace au diff --git a/au/units/liters.hh b/au/units/liters.hh index 1e7bb740..ae8013c7 100644 --- a/au/units/liters.hh +++ b/au/units/liters.hh @@ -16,6 +16,7 @@ #include "au/prefix.hh" #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/meters.hh" namespace au { @@ -34,4 +35,7 @@ struct Liters : decltype(cubed(Deci{})), LitersLabel { constexpr auto liter = SingularNameFor{}; constexpr auto liters = QuantityMaker{}; +namespace symbols { +constexpr auto L = SymbolFor{}; +} } // namespace au diff --git a/au/units/lumens.hh b/au/units/lumens.hh index 2c21cae5..ed842aa8 100644 --- a/au/units/lumens.hh +++ b/au/units/lumens.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/candelas.hh" #include "au/units/steradians.hh" @@ -34,4 +35,7 @@ struct Lumens : decltype(Candelas{} * Steradians{}), LumensLabel { constexpr auto lumen = SingularNameFor{}; constexpr auto lumens = QuantityMaker{}; +namespace symbols { +constexpr auto lm = SymbolFor{}; +} } // namespace au diff --git a/au/units/lux.hh b/au/units/lux.hh index 6382b5e8..3b13572d 100644 --- a/au/units/lux.hh +++ b/au/units/lux.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/lumens.hh" #include "au/units/meters.hh" @@ -33,4 +34,7 @@ struct Lux : decltype(Lumens{} / squared(Meters{})), LuxLabel { }; constexpr auto lux = QuantityMaker{}; +namespace symbols { +constexpr auto lx = SymbolFor{}; +} } // namespace au diff --git a/au/units/meters.hh b/au/units/meters.hh index f84d228c..898936f5 100644 --- a/au/units/meters.hh +++ b/au/units/meters.hh @@ -16,6 +16,7 @@ #include "au/quantity.hh" #include "au/quantity_point.hh" +#include "au/unit_symbol.hh" namespace au { @@ -34,4 +35,7 @@ constexpr auto meter = SingularNameFor{}; constexpr auto meters = QuantityMaker{}; constexpr auto meters_pt = QuantityPointMaker{}; +namespace symbols { +constexpr auto m = SymbolFor{}; +} } // namespace au diff --git a/au/units/miles.hh b/au/units/miles.hh index 0fdca165..7fca0661 100644 --- a/au/units/miles.hh +++ b/au/units/miles.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/feet.hh" namespace au { @@ -33,4 +34,7 @@ struct Miles : decltype(Feet{} * mag<5'280>()), MilesLabel { constexpr auto mile = SingularNameFor{}; constexpr auto miles = QuantityMaker{}; +namespace symbols { +constexpr auto mi = SymbolFor{}; +} } // namespace au diff --git a/au/units/minutes.hh b/au/units/minutes.hh index 0f1a702b..452f1739 100644 --- a/au/units/minutes.hh +++ b/au/units/minutes.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/seconds.hh" namespace au { @@ -33,4 +34,7 @@ struct Minutes : decltype(Seconds{} * mag<60>()), MinutesLabel { constexpr auto minute = SingularNameFor{}; constexpr auto minutes = QuantityMaker{}; +namespace symbols { +constexpr auto min = SymbolFor{}; +} } // namespace au diff --git a/au/units/moles.hh b/au/units/moles.hh index 05b0ff0c..01053070 100644 --- a/au/units/moles.hh +++ b/au/units/moles.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" namespace au { @@ -32,4 +33,7 @@ struct Moles : UnitImpl, MolesLabel { constexpr auto mole = SingularNameFor{}; constexpr auto moles = QuantityMaker{}; +namespace symbols { +constexpr auto mol = SymbolFor{}; +} } // namespace au diff --git a/au/units/nautical_miles.hh b/au/units/nautical_miles.hh index 5aeb2c0e..b6521c79 100644 --- a/au/units/nautical_miles.hh +++ b/au/units/nautical_miles.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/meters.hh" namespace au { @@ -33,4 +34,7 @@ struct NauticalMiles : decltype(Meters{} * mag<1'852>()), NauticalMilesLabel{}; constexpr auto nautical_miles = QuantityMaker{}; +namespace symbols { +constexpr auto nmi = SymbolFor{}; +} } // namespace au diff --git a/au/units/newtons.hh b/au/units/newtons.hh index 022b3ba4..2f2bdf6a 100644 --- a/au/units/newtons.hh +++ b/au/units/newtons.hh @@ -16,6 +16,7 @@ #include "au/prefix.hh" #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/grams.hh" #include "au/units/meters.hh" #include "au/units/seconds.hh" @@ -36,4 +37,7 @@ struct Newtons : decltype(Kilo{} * Meters{} / squared(Seconds{})), Newton constexpr auto newton = SingularNameFor{}; constexpr auto newtons = QuantityMaker{}; +namespace symbols { +constexpr auto N = SymbolFor{}; +} } // namespace au diff --git a/au/units/ohms.hh b/au/units/ohms.hh index ad8a958d..8f6bc272 100644 --- a/au/units/ohms.hh +++ b/au/units/ohms.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/amperes.hh" #include "au/units/volts.hh" @@ -34,4 +35,7 @@ struct Ohms : decltype(Volts{} / Amperes{}), OhmsLabel { constexpr auto ohm = SingularNameFor{}; constexpr auto ohms = QuantityMaker{}; +namespace symbols { +constexpr auto ohm = SymbolFor{}; +} } // namespace au diff --git a/au/units/pascals.hh b/au/units/pascals.hh index ed805277..bc86df89 100644 --- a/au/units/pascals.hh +++ b/au/units/pascals.hh @@ -16,6 +16,7 @@ #include "au/quantity.hh" #include "au/quantity_point.hh" +#include "au/unit_symbol.hh" #include "au/units/meters.hh" #include "au/units/newtons.hh" @@ -36,4 +37,7 @@ constexpr auto pascal = SingularNameFor{}; constexpr auto pascals = QuantityMaker{}; constexpr QuantityPointMaker pascals_pt{}; +namespace symbols { +constexpr auto Pa = SymbolFor{}; +} } // namespace au diff --git a/au/units/percent.hh b/au/units/percent.hh index bfe714f3..9a917621 100644 --- a/au/units/percent.hh +++ b/au/units/percent.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/unos.hh" namespace au { @@ -32,4 +33,7 @@ struct Percent : decltype(Unos{} / mag<100>()), PercentLabel { }; constexpr auto percent = QuantityMaker{}; +namespace symbols { +constexpr auto pct = SymbolFor{}; +} } // namespace au diff --git a/au/units/pounds_force.hh b/au/units/pounds_force.hh index 1458f185..b48603a2 100644 --- a/au/units/pounds_force.hh +++ b/au/units/pounds_force.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/pounds_mass.hh" #include "au/units/standard_gravity.hh" @@ -34,4 +35,7 @@ struct PoundsForce : decltype(PoundsMass{} * StandardGravity{}), PoundsForceLabe constexpr auto pound_force = SingularNameFor{}; constexpr auto pounds_force = QuantityMaker{}; +namespace symbols { +constexpr auto lbf = SymbolFor{}; +} } // namespace au diff --git a/au/units/pounds_mass.hh b/au/units/pounds_mass.hh index fb73d59d..0c1bdb74 100644 --- a/au/units/pounds_mass.hh +++ b/au/units/pounds_mass.hh @@ -16,6 +16,7 @@ #include "au/prefix.hh" #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/grams.hh" namespace au { @@ -34,4 +35,7 @@ struct PoundsMass : decltype(Micro{} * mag<453'592'370>()), PoundsMassLab constexpr auto pound_mass = SingularNameFor{}; constexpr auto pounds_mass = QuantityMaker{}; +namespace symbols { +constexpr auto lb = SymbolFor{}; +} } // namespace au diff --git a/au/units/radians.hh b/au/units/radians.hh index 0a8ad0e9..ed368730 100644 --- a/au/units/radians.hh +++ b/au/units/radians.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" namespace au { @@ -32,4 +33,7 @@ struct Radians : UnitImpl, RadiansLabel { constexpr auto radian = SingularNameFor{}; constexpr auto radians = QuantityMaker{}; +namespace symbols { +constexpr auto rad = SymbolFor{}; +} } // namespace au diff --git a/au/units/revolutions.hh b/au/units/revolutions.hh index f3eb8310..a2432546 100644 --- a/au/units/revolutions.hh +++ b/au/units/revolutions.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" #include "au/units/degrees.hh" namespace au { @@ -33,4 +34,7 @@ struct Revolutions : decltype(Degrees{} * mag<360>()), RevolutionsLabel { constexpr auto revolution = SingularNameFor{}; constexpr auto revolutions = QuantityMaker{}; +namespace symbols { +constexpr auto rev = SymbolFor{}; +} } // namespace au diff --git a/au/units/seconds.hh b/au/units/seconds.hh index f3aad570..2d37ea79 100644 --- a/au/units/seconds.hh +++ b/au/units/seconds.hh @@ -15,6 +15,7 @@ #pragma once #include "au/quantity.hh" +#include "au/unit_symbol.hh" namespace au { @@ -32,4 +33,7 @@ struct Seconds : UnitImpl