Unit Conversion and Dimensional Analysis Library
2.3.0
A compile-time c++14 unit conversion library
|
Stores a rational unit value as a compile-time constant. More...
#include <units.h>
Public Types | |
typedef Units | unit_type |
typedef std::ratio< Num, Denom > | ratio |
Static Public Member Functions | |
static constexpr const unit_t< Units > | value () |
Stores a rational unit value as a compile-time constant.
unit_value_t is useful for performing compile-time arithmetic on known unit quantities.
Units | units represented by the unit_value_t |
Num | numerator of the represented value. |
Denom | denominator of the represented value. |
std::ratio
.