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;
Implement std::hash so that hash_code can be used in STL containers.
Definition PointerIntPair.h:280
Unit Conversion Library namespace.
Definition acceleration.h:33
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
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:761
Type representing an arbitrary unit.
Definition base.h:888
#define UNIT_ADD(namespaceName, nameSingular, namePlural, abbreviation,...)
Macro for generating the boiler-plate code needed for a new unit.
Definition base.h:290
#define UNIT_ADD_CATEGORY_TRAIT(unitCategory)
Macro to create the is_category_unit type trait.
Definition base.h:373
#define UNIT_ADD_WITH_METRIC_PREFIXES(namespaceName, nameSingular, namePlural, abbreviation,...)
Macro for generating the boiler-plate code needed for a new unit, including its metric prefixes from ...
Definition base.h:399