units_density(3)

units::density(3) Unit Conversion and Dimensional Analysis Library units::density(3)

NAME

units::density - namespace for unit types and containers representing density values

SYNOPSIS

Typedefs

Units (full names plural)



typedef unit< std::ratio< 1 >, units::category::density_unit > kilograms_per_cubic_meter


Units (abbreviated)



typedef kilograms_per_cubic_meter kg_per_cu_m


Unit Containers



typedef unit_t< kilograms_per_cubic_meter > kilograms_per_cubic_meter_t
typedef unit_t< grams_per_milliliter > grams_per_milliliter_t
typedef unit_t< kilograms_per_liter > kilograms_per_liter_t
typedef unit_t< ounces_per_cubic_foot > ounces_per_cubic_foot_t
typedef unit_t< ounces_per_cubic_inch > ounces_per_cubic_inch_t
typedef unit_t< ounces_per_gallon > ounces_per_gallon_t
typedef unit_t< pounds_per_cubic_foot > pounds_per_cubic_foot_t
typedef unit_t< pounds_per_cubic_inch > pounds_per_cubic_inch_t
typedef unit_t< pounds_per_gallon > pounds_per_gallon_t
typedef unit_t< slugs_per_cubic_foot > slugs_per_cubic_foot_t


Functions


std::ostream & operator<< (std::ostream &os, const kilograms_per_cubic_meter_t &obj)
std::string to_string (const kilograms_per_cubic_meter_t &obj)
std::ostream & operator<< (std::ostream &os, const grams_per_milliliter_t &obj)
std::string to_string (const grams_per_milliliter_t &obj)
std::ostream & operator<< (std::ostream &os, const kilograms_per_liter_t &obj)
std::string to_string (const kilograms_per_liter_t &obj)
std::ostream & operator<< (std::ostream &os, const ounces_per_cubic_foot_t &obj)
std::string to_string (const ounces_per_cubic_foot_t &obj)
std::ostream & operator<< (std::ostream &os, const ounces_per_cubic_inch_t &obj)
std::string to_string (const ounces_per_cubic_inch_t &obj)
std::ostream & operator<< (std::ostream &os, const ounces_per_gallon_t &obj)
std::string to_string (const ounces_per_gallon_t &obj)
std::ostream & operator<< (std::ostream &os, const pounds_per_cubic_foot_t &obj)
std::string to_string (const pounds_per_cubic_foot_t &obj)
std::ostream & operator<< (std::ostream &os, const pounds_per_cubic_inch_t &obj)
std::string to_string (const pounds_per_cubic_inch_t &obj)
std::ostream & operator<< (std::ostream &os, const pounds_per_gallon_t &obj)
std::string to_string (const pounds_per_gallon_t &obj)
std::ostream & operator<< (std::ostream &os, const slugs_per_cubic_foot_t &obj)
std::string to_string (const slugs_per_cubic_foot_t &obj)

Detailed Description

namespace for unit types and containers representing density values

The SI unit for density is kilograms_per_cubic_meter, and the corresponding base_unit category is density_unit.

See also

See unit_t for more information on unit type containers.

Author

Generated automatically by Doxygen for Unit Conversion and Dimensional Analysis Library from the source code.

Wed Feb 11 2026 09:38:34 Version 2.3.0