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;
#define UNIT_ADD_CATEGORY_TRAIT(unitCategory)
Macro to create the is_category_unit type trait.
Definition: base.h:369
typename units::detail::inverse_impl< U >::type inverse
represents the inverse unit type of class U.
Definition: base.h:1134
typename units::detail::compound_impl< U, Us... >::type compound_unit
Represents a unit type made up from other units.
Definition: base.h:1434
Unit Conversion Library namespace.
Definition: data.h:31
compound_unit< mass::grams, inverse< volume::milliliter > > oz_per_cu_ft
Definition: density.h:51
squared< angle::degrees > UNIT_ADD(solid_angle, spat, spats, sp, unit< std::ratio< 4 >, steradians, std::ratio< 1 > >) using namespace solid_angle
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:757
Type representing an arbitrary unit.
Definition: base.h:884