41#if !defined(DISABLE_PREDEFINED_UNITS) || \
42 defined(ENABLE_PREDEFINED_VOLUME_UNITS)
43UNIT_ADD(volume, cubic_meter, cubic_meters, cu_m,
47UNIT_ADD(volume, cubic_kilometer, cubic_kilometers, cu_km,
55UNIT_ADD(volume, gallon, gallons, gal,
unit<
std::ratio<231>, cubic_inches>)
59UNIT_ADD(volume, fluid_ounce, fluid_ounces, fl_oz,
unit<
std::ratio<1, 8>, cups>)
62 unit<
std::ratio<215042, 100>, cubic_inches>)
66 unit<
std::ratio<1, 2>, fluid_ounces>)
67UNIT_ADD(volume, teaspoon, teaspoons, tsp,
unit<
std::ratio<1, 6>, fluid_ounces>)
68UNIT_ADD(volume, pinch, pinches, pinch,
unit<
std::ratio<1, 8>, teaspoons>)
70UNIT_ADD(volume, drop, drops, drop,
unit<
std::ratio<1, 360>, fluid_ounces>)
76UNIT_ADD(volume, shot, shots, shots,
unit<
std::ratio<3, 2>, fluid_ounces>)
82using namespace volume;
typename units::detail::prefix< std::deci, U >::type deci
Represents the type of class U with the metric 'deci' prefix appended.
Definition: base.h:1487
typename units::detail::cubed_impl< U >::type cubed
represents the type of class U cubed.
Definition: base.h:1198
FMT_CONSTEXPR auto length(const Char *s) -> size_t
Definition: base.h:460
Implement std::hash so that hash_code can be used in STL containers.
Definition: array.h:89
static constexpr const velocity::meters_per_second_t c(299792458.0)
Speed of light in vacuum.
Unit Conversion Library namespace.
Definition: temperature.h:31
cubed< length::millimeter > L
Definition: volume.h:49
cu_mm
Definition: volume.h:45
cubed< length::millimeter > cubed< deci< length::meter > > tbsp
Definition: volume.h:65
cubic_millimeters
Definition: volume.h:45
cubed< length::millimeter > liter
Definition: volume.h:49
cubic_millimeter
Definition: volume.h:45
cubed< length::millimeter > liters
Definition: volume.h:49
UNIT_ADD(temperature, kelvin, kelvin, K, unit< std::ratio< 1 >, units::category::temperature_unit >) UNIT_ADD(temperature
UNIT_ADD_WITH_METRIC_PREFIXES(mass, gram, grams, g, unit< std::ratio< 1, 1000 >, units::category::mass_unit >) UNIT_ADD(mass
cubed< length::millimeter > cubed< deci< length::meter > > tablespoon
Definition: volume.h:65
cubed< length::millimeter > cubed< deci< length::meter > > tablespoons
Definition: volume.h:65
Class representing SI base unit types.
Definition: base.h:760
Type representing an arbitrary unit.
Definition: base.h:887
#define UNIT_ADD_CATEGORY_TRAIT(unitCategory)
Macro to create the is_category_unit type trait.
Definition: base.h:372