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: StdDeque.h:50
Unit Conversion Library namespace.
Definition: current.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_ADD(area, square_meter, square_meters, sq_m, unit< std::ratio< 1 >, units::category::area_unit >) UNIT_ADD(area
unit< std::ratio< 1852 >, meters > ly
Definition: length.h:52
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(current, ampere, amperes, A, unit< std::ratio< 1 >, units::category::current_unit >) using namespace current
Class representing SI base unit types.
Definition: base.h:758
Type representing an arbitrary unit.
Definition: base.h:884