24#ifndef quantlib_quantity_hpp
25#define quantlib_quantity_hpp
125 : commodityType_(
std::move(commodityType)), unitOfMeasure_(
std::move(unitOfMeasure)),
static ConversionType conversionType
UnitOfMeasure unitOfMeasure_
static UnitOfMeasure baseUnitOfMeasure
Quantity operator+() const
Quantity & operator-=(const Quantity &)
CommodityType commodityType_
Quantity operator-() const
@ BaseUnitOfMeasureConversion
friend std::ostream & operator<<(std::ostream &, const Quantity &)
Quantity & operator*=(Real)
Quantity & operator+=(const Quantity &)
const CommodityType & commodityType() const
Quantity & operator/=(Real)
const UnitOfMeasure & unitOfMeasure() const
Unit of measure specification
const Rounding & rounding() const
std::size_t Size
size of a container
Quantity operator-(const Quantity &m1, const Quantity &m2)
bool operator==(const Currency &c1, const Currency &c2)
bool operator<(const Quantity &m1, const Quantity &m2)
Quantity operator*(const Quantity &m, Real x)
bool operator>=(const Quantity &m1, const Quantity &m2)
Quantity operator+(const Quantity &m1, const Quantity &m2)
bool operator!=(const Currency &c1, const Currency &c2)
bool operator>(const Quantity &m1, const Quantity &m2)
bool close(const Quantity &m1, const Quantity &m2, Size n)
bool operator<=(const Quantity &m1, const Quantity &m2)
bool close_enough(const Quantity &m1, const Quantity &m2, Size n)
Real operator/(const Quantity &m1, const Quantity &m2)