|
electro 0.3.0
Type-safe electrical units library modeled after std::chrono
|
Trait giving the display suffix for a (unit, precision) pair. More...
#include <electro/electro.hpp>
Static Public Member Functions | |
| static std::string | value () |
| Returns the display suffix. | |
Trait giving the display suffix for a (unit, precision) pair.
The primary template combines an SI prefix with the unit symbol (e.g. "mV", "kΩ") and is only usable when the precision is a standard SI prefix. Full specializations provide conventional suffixes for non-decade precisions such as "mAh", "Ah", "Wh" and "kWh".
| Unit | The unit tag type. |
| Precision | The (reduced) precision ratio. |
Definition at line 1170 of file electro.hpp.
|
inlinestatic |
Returns the display suffix.
Definition at line 1172 of file electro.hpp.
Referenced by electro::to_string().