This is a project aimed at making unit conversions and dimensional analysis quicker and more readable. In reality, this project was made in a personal attempt to learn more about the c++ language. For a more comprehensive library, I recommend mp-units. But who knows? Maybe this will be useful to someone as a lightweight alternative.
All units are implicitly converted to their base value, where then different definitions can be called.
units.hBase unit definition file.basic.hIncludes very basic units like the meter, mole, kilogram, candela, etc.si.hIncludes all SI units and definitions.time.hIncludes basic timastro.hIncludes standard static astronomical units. Measurements with uncertainty like galactic year and lunar distance are not yet included.
imperial.hIncludes all basic imperial units like foot, yard, etc.sci.hIncludes scientific values like the charge of the electron, planck length, the gravitational constant, etc.