19 #ifndef LARDATAALG_UTILITIES_QUANTITIES_ELECTROMAGNETISM_H 20 #define LARDATAALG_UTILITIES_QUANTITIES_ELECTROMAGNETISM_H 26 #include <string_view> 38 static constexpr
auto symbol =
"C"sv;
39 static constexpr
auto name =
"coulomb"sv;
43 static constexpr
auto symbol =
"V"sv;
44 static constexpr
auto name =
"volt"sv;
69 template <
typename R,
typename T =
double>
76 template <
typename T =
double>
86 template <
typename T =
double>
96 template <
typename T =
double>
106 template <
typename T =
double>
116 template <
typename T =
double>
126 template <
typename T =
double>
155 template <
typename R,
typename T =
double>
162 template <
typename T =
double>
172 template <
typename T =
double>
182 template <
typename T =
double>
192 template <
typename T =
double>
202 template <
typename T =
double>
212 template <
typename T =
double>
240 namespace electromagnetism_literals {
244 constexpr
coulomb operator""_C (
long double v)
245 {
return coulomb{
static_cast<double>(v) }; }
246 constexpr
coulomb operator""_C (
unsigned long long int v)
247 {
return coulomb{
static_cast<double>(v) }; }
293 constexpr
volt operator""_V (
long double v)
294 {
return volt{
static_cast<double>(v) }; }
295 constexpr
volt operator""_V (
unsigned long long int v)
296 {
return volt{
static_cast<double>(v) }; }
302 {
return millivolt{
static_cast<double>(v) }; }
303 constexpr
millivolt operator""_mV (
unsigned long long int v)
304 {
return millivolt{
static_cast<double>(v) }; }
310 {
return microvolt{
static_cast<double>(v) }; }
311 constexpr
microvolt operator""_uV (
unsigned long long int v)
312 {
return microvolt{
static_cast<double>(v) }; }
318 {
return kilovolt{
static_cast<double>(v) }; }
319 constexpr
kilovolt operator""_kV (
unsigned long long int v)
320 {
return kilovolt{
static_cast<double>(v) }; }
326 {
return megavolt{
static_cast<double>(v) }; }
327 constexpr
megavolt operator""_MV (
unsigned long long int v)
328 {
return megavolt{
static_cast<double>(v) }; }
334 {
return gigavolt{
static_cast<double>(v) }; }
335 constexpr
gigavolt operator""_GV (
unsigned long long int v)
336 {
return gigavolt{
static_cast<double>(v) }; }
347 #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.