units_mass(3)

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

NAME

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

SYNOPSIS

Typedefs

Units (full names plural)



typedef unit< std::ratio< 1, 1000 >, units::category::mass_unit > grams


Units (full names singular)



typedef grams gram


Units (abbreviated)



typedef grams g


Unit Containers



typedef unit_t< gram > gram_t
typedef unit_t< metric_ton > metric_ton_t
typedef unit_t< pound > pound_t
typedef unit_t< long_ton > long_ton_t
typedef unit_t< short_ton > short_ton_t
typedef unit_t< stone > stone_t
typedef unit_t< ounce > ounce_t
typedef unit_t< carat > carat_t
typedef unit_t< slug > slug_t


Functions


std::ostream & operator<< (std::ostream &os, const gram_t &obj)
std::string to_string (const gram_t &obj)
std::ostream & operator<< (std::ostream &os, const metric_ton_t &obj)
std::string to_string (const metric_ton_t &obj)
std::ostream & operator<< (std::ostream &os, const pound_t &obj)
std::string to_string (const pound_t &obj)
std::ostream & operator<< (std::ostream &os, const long_ton_t &obj)
std::string to_string (const long_ton_t &obj)
std::ostream & operator<< (std::ostream &os, const short_ton_t &obj)
std::string to_string (const short_ton_t &obj)
std::ostream & operator<< (std::ostream &os, const stone_t &obj)
std::string to_string (const stone_t &obj)
std::ostream & operator<< (std::ostream &os, const ounce_t &obj)
std::string to_string (const ounce_t &obj)
std::ostream & operator<< (std::ostream &os, const carat_t &obj)
std::string to_string (const carat_t &obj)
std::ostream & operator<< (std::ostream &os, const slug_t &obj)
std::string to_string (const slug_t &obj)

Detailed Description

namespace for unit types and containers representing mass values

The SI unit for mass is kilograms, and the corresponding base_unit category is mass_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