mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
feat: iec::var
unit added
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
MP_UNITS_EXPORT
|
||||
namespace mp_units::iec::unit_symbols {
|
||||
|
||||
// Electromagnetism
|
||||
inline constexpr auto var = volt_ampere_reactive_power;
|
||||
|
||||
// Information science and technology
|
||||
// bit
|
||||
inline constexpr auto kbit = si::kilo<bit>;
|
||||
inline constexpr auto Mbit = si::mega<bit>;
|
||||
|
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <mp-units/bits/module_macros.h>
|
||||
#include <mp-units/systems/iec/quantities.h>
|
||||
#include <mp-units/systems/isq/electromagnetism.h>
|
||||
#include <mp-units/systems/si/units.h>
|
||||
|
||||
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
||||
@@ -34,6 +35,10 @@ MP_UNITS_EXPORT
|
||||
namespace mp_units::iec {
|
||||
|
||||
// clang-format off
|
||||
// Electromagnetism
|
||||
inline constexpr struct volt_ampere_reactive_power final : named_unit<"var", si::volt * si::ampere, kind_of<isq::reactive_power>> {} volt_ampere_reactive_power;
|
||||
|
||||
// Information science and technology
|
||||
inline constexpr struct erlang final : named_unit<"E", kind_of<traffic_intensity>> {} erlang;
|
||||
inline constexpr struct bit final : named_unit<"bit", one, kind_of<storage_capacity>> {} bit;
|
||||
inline constexpr struct octet final : named_unit<"o", mag<8> * bit> {} octet;
|
||||
|
Reference in New Issue
Block a user