template<class Meter = detail::meter_ratio<0>, class Kilogram = std::ratio<0>, class Second = std::ratio<0>, class Radian = std::ratio<0>, class Ampere = std::ratio<0>, class Kelvin = std::ratio<0>, class Mole = std::ratio<0>, class Candela = std::ratio<0>, class Byte = std::ratio<0>>
struct units::base_unit< Meter, Kilogram, Second, Radian, Ampere, Kelvin, Mole, Candela, Byte >
Class representing SI base unit types.
Base units are represented by a combination of std::ratio
template parameters, each describing the exponent of the type of unit they represent. Example: meters per second would be described by a +1 exponent for meters, and a -1 exponent for seconds, thus: base_unit<std::ratio<1>, std::ratio<0>, std::ratio<-1>>
- Template Parameters
-
Meter | std::ratio representing the exponent value for meters. |
Kilogram | std::ratio representing the exponent value for kilograms. |
Second | std::ratio representing the exponent value for seconds. |
Radian | std::ratio representing the exponent value for radians. Although radians are not SI base units, they are included because radians are described by the SI as m * m^-1, which would make them indistinguishable from scalars. |
Ampere | std::ratio representing the exponent value for amperes. |
Kelvin | std::ratio representing the exponent value for Kelvin. |
Mole | std::ratio representing the exponent value for moles. |
Candela | std::ratio representing the exponent value for candelas. |
Byte | std::ratio representing the exponent value for bytes. |
- See also
- category for type aliases for SI base_unit types.