Class template quantity<BOOST_UNITS_DIMENSIONLESS_UNIT(System), Y>boost::units::quantity<BOOST_UNITS_DIMENSIONLESS_UNIT(System), Y> Synopsistemplate<typename System, typename Y> class quantity<BOOST_UNITS_DIMENSIONLESS_UNIT(System), Y> { public: // types typedef quantity< unit< dimensionless_type, System >, Y > this_type; typedef Y value_type; typedef System system_type; typedef dimensionless_type dimension_type; typedef unit< dimension_type, system_type > unit_type; // construct/copy/destruct quantity& operator=(const this_type &); template<typename YY> quantity& operator=(const quantity< unit< dimension_type, system_type >, YY > &); template<typename System2> quantity& operator=(const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(System2), Y > &); // public member functions quantity() ; quantity(value_type) ; quantity(const this_type &) ; template<typename YY> quantity(const quantity< unit< dimension_type, system_type >, YY > &, unspecified = 0) ; template<typename YY> quantity(const quantity< unit< dimension_type, system_type >, YY > &, unspecified = 0) ; template<typename System2, typename Y2> quantity(const quantity< unit< dimensionless_type, System2 >, Y2 > &, unspecified = 0, unspecified = 0, unspecified = 0) ; template<typename System2, typename Y2> quantity(const quantity< unit< dimensionless_type, System2 >, Y2 > &, unspecified = 0, unspecified = 0, unspecified = 0) ; template<typename System2, typename Y2> quantity(const quantity< unit< dimensionless_type, System2 >, Y2 > &, unspecified = 0) ; operator value_type() const; const value_type & value() const; this_type & operator+=(const this_type &) ; this_type & operator-=(const this_type &) ; this_type & operator*=(const value_type &) ; this_type & operator/=(const value_type &) ; // public static functions static this_type from_value(const value_type &) ; }; DescriptionSpecialization for dimensionless quantities. Implicit conversions between unit systems are allowed because all dimensionless quantities are equivalent. Implicit construction and assignment from and conversion to
|