dimval 0.2.0
Modern C++23 header-only library of dimensional values (units, measures, ranges)
Loading...
Searching...
No Matches
imperial.hpp File Reference

Imperial / US customary units that interconvert with SI through a non-trivial factor. More...

#include <dimval/define.hpp>
Include dependency graph for imperial.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Imperial / US customary units that interconvert with SI through a non-trivial factor.

All units share the SI canonical kind (length, mass, pressure, volume), so e.g. convert<Inch>(MeterValue{1}) works out of the box via the existing kind-match rule in units_compatible<>. Where a name is ambiguous (e.g. Gallon), this file declares the US variant; UK imperial counterparts are deferred to a future release.