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:369
constexpr auto in(type t, int set) -> bool
Definition: core.h:611
Unit Conversion Library namespace.
Definition: data.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
nmi
Definition: length.h:48
UNIT_ADD_WITH_METRIC_PREFIXES(solid_angle, steradian, steradians, sr, unit< std::ratio< 1 >, units::category::solid_angle_unit >) UNIT_ADD(solid_angle
squared< angle::degrees > UNIT_ADD(solid_angle, spat, spats, sp, unit< std::ratio< 4 >, steradians, std::ratio< 1 > >) using namespace solid_angle
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
Class representing SI base unit types.
Definition: base.h:757
Type representing an arbitrary unit.
Definition: base.h:884