19 #ifndef LARDATAALG_UTILITIES_QUANTITIES_ELECTROMAGNETISM_H 20 #define LARDATAALG_UTILITIES_QUANTITIES_ELECTROMAGNETISM_H 27 #include <string_view> 37 static constexpr
auto symbol =
"C"sv;
38 static constexpr
auto name =
"coulomb"sv;
42 static constexpr
auto symbol =
"V"sv;
43 static constexpr
auto name =
"volt"sv;
66 template <
typename R,
typename T =
double>
73 template <
typename T =
double>
83 template <
typename T =
double>
93 template <
typename T =
double>
103 template <
typename T =
double>
113 template <
typename T =
double>
123 template <
typename T =
double>
149 template <
typename R,
typename T =
double>
156 template <
typename T =
double>
166 template <
typename T =
double>
176 template <
typename T =
double>
186 template <
typename T =
double>
196 template <
typename T =
double>
206 template <
typename T =
double>
233 namespace electromagnetism_literals {
239 return coulomb{
static_cast<double>(v)};
241 constexpr
coulomb operator""_C(
unsigned long long int v)
243 return coulomb{
static_cast<double>(v)};
309 constexpr
volt operator""_V(
long double v)
311 return volt{
static_cast<double>(v)};
313 constexpr
volt operator""_V(
unsigned long long int v)
315 return volt{
static_cast<double>(v)};
323 return millivolt{
static_cast<double>(v)};
325 constexpr
millivolt operator""_mV(
unsigned long long int v)
327 return millivolt{
static_cast<double>(v)};
335 return microvolt{
static_cast<double>(v)};
337 constexpr
microvolt operator""_uV(
unsigned long long int v)
339 return microvolt{
static_cast<double>(v)};
347 return kilovolt{
static_cast<double>(v)};
349 constexpr
kilovolt operator""_kV(
unsigned long long int v)
351 return kilovolt{
static_cast<double>(v)};
359 return megavolt{
static_cast<double>(v)};
361 constexpr
megavolt operator""_MV(
unsigned long long int v)
363 return megavolt{
static_cast<double>(v)};
371 return gigavolt{
static_cast<double>(v)};
373 constexpr
gigavolt operator""_GV(
unsigned long long int v)
375 return gigavolt{
static_cast<double>(v)};
385 #endif // LARDATAALG_UTILITIES_QUANTITIES_ELECTROMAGNETISM_H
A value measured in the specified unit.
Numeric variable proxies with embedded unit of measurement.
Types of variables with a unit.