40#if !defined(DISABLE_PREDEFINED_UNITS) || \
41 defined(ENABLE_PREDEFINED_LENGTH_UNITS)
50UNIT_ADD(length, astronicalUnit, astronicalUnits, au,
51 unit<
std::ratio<149597870700>, meters>)
53 unit<
std::ratio<9460730472580800>, meters>)
55 unit<
std::ratio<648000>, astronicalUnits,
std::ratio<-1>>)
57 unit<
std::ratio<1, 10>, nanometers>)
64UNIT_ADD(length, nauticalLeague, nauticalLeagues, nl,
71using namespace length;
#define UNIT_ADD_CATEGORY_TRAIT(unitCategory)
Macro to create the is_category_unit type trait.
Definition: base.h:381
Definition: BFloat16.h:88
Unit Conversion Library namespace.
Definition: magnetic_flux.h:31
unit< std::ratio< 1852 >, meters > lightyears
Definition: length.h:52
unit< std::ratio< 1852 >, meters > lightyear
Definition: length.h:52
unit< std::ratio< 1852 >, meters > unit< std::ratio< 9460730472580800 >, meters > angstrom
Definition: length.h:56
unit< std::ratio< 1852 >, meters > ly
Definition: length.h:52
UNIT_ADD(moment_of_inertia, kilogram_square_meter, kilogram_square_meters, kg_sq_m, compound_unit< mass::kilograms, area::square_meters >) using namespace moment_of_inertia
nmi
Definition: length.h:48
nauticalMile
Definition: length.h:48
nauticalMiles
Definition: length.h:48
unit< std::ratio< 1852 >, meters > unit< std::ratio< 9460730472580800 >, meters > angstroms
Definition: length.h:56
UNIT_ADD_WITH_METRIC_PREFIXES(magnetic_flux, weber, webers, Wb, unit< std::ratio< 1 >, units::category::magnetic_flux_unit >) UNIT_ADD(magnetic_flux
Class representing SI base unit types.
Definition: base.h:769
Type representing an arbitrary unit.
Definition: base.h:895