42#if !defined(DISABLE_PREDEFINED_UNITS) || \
43 defined(ENABLE_PREDEFINED_DENSITY_UNITS)
44UNIT_ADD(density, kilograms_per_cubic_meter, kilograms_per_cubic_meter,
48UNIT_ADD(density, kilograms_per_liter, kilograms_per_liter, kg_per_L,
53UNIT_ADD(density, ounces_per_cubic_inch, ounces_per_cubic_inch, oz_per_cu_in,
57UNIT_ADD(density, pounds_per_cubic_foot, pounds_per_cubic_foot, lb_per_cu_ft,
61UNIT_ADD(density, pounds_per_gallon, pounds_per_gallon, lb_per_gal,
69using namespace density;
typename units::detail::inverse_impl< U >::type inverse
represents the inverse unit type of class U.
Definition base.h:1138
typename units::detail::compound_impl< U, Us... >::type compound_unit
Represents a unit type made up from other units.
Definition base.h:1438
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
compound_unit< mass::grams, inverse< volume::milliliter > > oz_per_cu_ft
Definition density.h:51
compound_unit< mass::grams, inverse< volume::milliliter > > compound_unit< mass::ounces, inverse< volume::cubic_foot > > compound_unit< mass::ounces, inverse< volume::gallon > > lb_per_cu_in
Definition density.h:59
compound_unit< mass::grams, inverse< volume::milliliter > > compound_unit< mass::ounces, inverse< volume::cubic_foot > > compound_unit< mass::ounces, inverse< volume::gallon > > compound_unit< mass::pounds, inverse< volume::cubic_inch > > slug_per_cu_ft
Definition density.h:63
compound_unit< mass::grams, inverse< volume::milliliter > > ounces_per_cubic_foot
Definition density.h:51
compound_unit< mass::grams, inverse< volume::milliliter > > compound_unit< mass::ounces, inverse< volume::cubic_foot > > compound_unit< mass::ounces, inverse< volume::gallon > > compound_unit< mass::pounds, inverse< volume::cubic_inch > > slugs_per_cubic_foot
Definition density.h:63
compound_unit< mass::grams, inverse< volume::milliliter > > compound_unit< mass::ounces, inverse< volume::cubic_foot > > oz_per_gal
Definition density.h:55
grams_per_milliliter
Definition density.h:46
compound_unit< mass::grams, inverse< volume::milliliter > > compound_unit< mass::ounces, inverse< volume::cubic_foot > > compound_unit< mass::ounces, inverse< volume::gallon > > pounds_per_cubic_inch
Definition density.h:59
pounds
Definition mass.h:44
compound_unit< mass::grams, inverse< volume::milliliter > > compound_unit< mass::ounces, inverse< volume::cubic_foot > > ounces_per_gallon
Definition density.h:55
g_per_mL
Definition density.h:46
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