units
Use physical dimensions at compile-time or run-time.
Typedefs | Functions | Variables
vnix::units::flt Namespace Reference

Single-precision dimensions and units. More...

Typedefs

using dyndim = basic_dyndim< float >
 Type of dimensioned value whose dimension is not known at compile-time. More...
 
using length = basic_statdim< length_dim.encode(), float >
 Type for variable of dimension length. More...
 
using mass = basic_statdim< mass_dim.encode(), float >
 Type for variable of dimension mass. More...
 
using time = basic_statdim< time_dim.encode(), float >
 Type for variable of dimension time. More...
 
using charge = basic_statdim< charge_dim.encode(), float >
 Type for variable of dimension charge. More...
 
using temperature = basic_statdim< temperature_dim.encode(), float >
 Type for variable of dimension temperature. More...
 
using speed = decltype(m/s)
 
using acceleration = decltype(m/s/s)
 
using momentum = decltype(g *m/s)
 
using force = decltype(N/1)
 
using current = decltype(C/s)
 
using energy = decltype(J/1)
 
using power = decltype(W/1)
 
using area = decltype(m *m)
 
using volume = decltype(m *m *m)
 
using pressure = decltype(N/m/m)
 

Functions

constexpr auto operator""_m (long double v)
 Interpret a number, suffixed with '_m', as a (literal) number of meters. More...
 
constexpr auto operator""_cm (long double v)
 Interpret a number, suffixed with '_cm', as a (literal) number of centimeters. More...
 
constexpr auto operator""_mm (long double v)
 Interpret a number, suffixed with '_mm', as a (literal) number of millimeters. More...
 
constexpr auto operator""_mum (long double v)
 Interpret a number, suffixed with '_mum', as a (literal) number of micrometers. More...
 
constexpr auto operator""_nm (long double v)
 Interpret a number, suffixed with '_nm', as a (literal) number of nanometers. More...
 
constexpr auto operator""_pm (long double v)
 Interpret a number, suffixed with '_pm', as a (literal) number of picometers. More...
 
constexpr auto operator""_fm (long double v)
 Interpret a number, suffixed with '_fm', as a (literal) number of femtometers. More...
 
constexpr auto operator""_km (long double v)
 Interpret a number, suffixed with '_km', as a (literal) number of kilometers. More...
 
constexpr auto operator""_Mm (long double v)
 Interpret a number, suffixed with '_Mm', as a (literal) number of megameters. More...
 
constexpr auto operator""_g (long double v)
 Interpret a number, suffixed with '_g', as a (literal) number of grams. More...
 
constexpr auto operator""_mg (long double v)
 Interpret a number, suffixed with '_mg', as a (literal) number of milligrams. More...
 
constexpr auto operator""_mug (long double v)
 Interpret a number, suffixed with '_mug', as a (literal) number of micrograms. More...
 
constexpr auto operator""_ng (long double v)
 Interpret a number, suffixed with '_ng', as a (literal) number of nanograms. More...
 
constexpr auto operator""_pg (long double v)
 Interpret a number, suffixed with '_pg', as a (literal) number of picograms. More...
 
constexpr auto operator""_kg (long double v)
 Interpret a number, suffixed with '_kg', as a (literal) number of kilograms. More...
 
constexpr auto operator""_Mg (long double v)
 Interpret a number, suffixed with '_Mg', as a (literal) number of megagrams. More...
 
constexpr auto operator""_s (long double v)
 Interpret a number, suffixed with '_s', as a (literal) number of seconds. More...
 
constexpr auto operator""_ms (long double v)
 Interpret a number, suffixed with '_ms', as a (literal) number of milliseconds. More...
 
constexpr auto operator""_mus (long double v)
 Interpret a number, suffixed with '_mus', as a (literal) number of microseconds. More...
 
constexpr auto operator""_ns (long double v)
 Interpret a number, suffixed with '_ns', as a (literal) number of nanoseconds. More...
 
constexpr auto operator""_ps (long double v)
 Interpret a number, suffixed with '_ps', as a (literal) number of picoseconds. More...
 
constexpr auto operator""_fs (long double v)
 Interpret a number, suffixed with '_fs', as a (literal) number of femtoseconds. More...
 
constexpr auto operator""_C (long double v)
 Interpret a number, suffixed with '_C', as a (literal) number of coulombs. More...
 
constexpr auto operator""_mC (long double v)
 Interpret a number, suffixed with '_mC', as a (literal) number of millicoulombs. More...
 
constexpr auto operator""_muC (long double v)
 Interpret a number, suffixed with '_muC', as a (literal) number of microcoulombs. More...
 
constexpr auto operator""_nC (long double v)
 Interpret a number, suffixed with '_nC', as a (literal) number of nanocoulombs. More...
 
constexpr auto operator""_pC (long double v)
 Interpret a number, suffixed with '_pC', as a (literal) number of picocoulombs. More...
 
constexpr auto operator""_K (long double v)
 Interpret a number, suffixed with '_K', as a (literal) number of kelvins. More...
 
constexpr auto operator""_mK (long double v)
 Interpret a number, suffixed with '_mK', as a (literal) number of millikelvins. More...
 
constexpr auto operator""_muK (long double v)
 Interpret a number, suffixed with '_muK', as a (literal) number of microkelvins. More...
 
constexpr auto operator""_nK (long double v)
 Interpret a number, suffixed with '_nK', as a (literal) number of nanokelvins. More...
 
constexpr auto operator""_ft (long double v)
 Interpret a number, suffixed with '_ft', as a (literal) number of feet. More...
 
constexpr auto operator""_kft (long double v)
 Interpret a number, suffixed with '_kft', as a (literal) number of kilofeet. More...
 
constexpr auto operator""_in (long double v)
 Interpret a number, suffixed with '_in', as a (literal) number of inches. More...
 
constexpr auto operator""_yd (long double v)
 Interpret a number, suffixed with '_yd', as a (literal) number of yards. More...
 
constexpr auto operator""_mi (long double v)
 Interpret a number, suffixed with '_mi', as a (literal) number of miles. More...
 
constexpr auto operator""_N (long double v)
 Interpret a number, suffixed with '_N', as a (literal) number of newtons. More...
 
constexpr auto operator""_mN (long double v)
 Interpret a number, suffixed with '_mN', as a (literal) number of millinewtons. More...
 
constexpr auto operator""_muN (long double v)
 Interpret a number, suffixed with '_muN', as a (literal) number of micronewtons. More...
 
constexpr auto operator""_kN (long double v)
 Interpret a number, suffixed with '_kN', as a (literal) number of kilonewtons. More...
 
constexpr auto operator""_MN (long double v)
 Interpret a number, suffixed with '_MN', as a (literal) number of meganewtons. More...
 
constexpr auto operator""_dyn (long double v)
 Interpret a number, suffixed with '_dyn', as a (literal) number of dynes. More...
 
constexpr auto operator""_J (long double v)
 Interpret a number, suffixed with '_J', as a (literal) number of joules. More...
 
constexpr auto operator""_mJ (long double v)
 Interpret a number, suffixed with '_mJ', as a (literal) number of millijoules. More...
 
constexpr auto operator""_muJ (long double v)
 Interpret a number, suffixed with '_muJ', as a (literal) number of microjoules. More...
 
constexpr auto operator""_kJ (long double v)
 Interpret a number, suffixed with '_kJ', as a (literal) number of kilojoules. More...
 
constexpr auto operator""_MJ (long double v)
 Interpret a number, suffixed with '_MJ', as a (literal) number of megajoules. More...
 
constexpr auto operator""_GJ (long double v)
 Interpret a number, suffixed with '_GJ', as a (literal) number of gigajoules. More...
 
constexpr auto operator""_erg (long double v)
 Interpret a number, suffixed with '_erg', as a (literal) number of ergs. More...
 
constexpr auto operator""_W (long double v)
 Interpret a number, suffixed with '_W', as a (literal) number of watts. More...
 
constexpr auto operator""_mW (long double v)
 Interpret a number, suffixed with '_mW', as a (literal) number of milliwatts. More...
 
constexpr auto operator""_muW (long double v)
 Interpret a number, suffixed with '_muW', as a (literal) number of microwatts. More...
 
constexpr auto operator""_kW (long double v)
 Interpret a number, suffixed with '_kW', as a (literal) number of kilowatts. More...
 
constexpr auto operator""_MW (long double v)
 Interpret a number, suffixed with '_MW', as a (literal) number of megawatts. More...
 
constexpr auto operator""_GW (long double v)
 Interpret a number, suffixed with '_GW', as a (literal) number of gigawatts. More...
 
constexpr auto operator""_A (long double v)
 Interpret a number, suffixed with '_A', as a (literal) number of amperes. More...
 
constexpr auto operator""_mA (long double v)
 Interpret a number, suffixed with '_mA', as a (literal) number of milliamperes. More...
 
constexpr auto operator""_muA (long double v)
 Interpret a number, suffixed with '_muA', as a (literal) number of microamperes. More...
 

Variables

constexpr auto m = impl::m<float>
 Constant-expression symbol for m. More...
 
constexpr auto cm = impl::cm<float>
 Constant-expression symbol for cm. More...
 
constexpr auto mm = impl::mm<float>
 Constant-expression symbol for mm. More...
 
constexpr auto mum = impl::mum<float>
 Constant-expression symbol for mum. More...
 
constexpr auto nm = impl::nm<float>
 Constant-expression symbol for nm. More...
 
constexpr auto pm = impl::pm<float>
 Constant-expression symbol for pm. More...
 
constexpr auto fm = impl::fm<float>
 Constant-expression symbol for fm. More...
 
constexpr auto km = impl::km<float>
 Constant-expression symbol for km. More...
 
constexpr auto Mm = impl::Mm<float>
 Constant-expression symbol for Mm. More...
 
constexpr auto g = impl::g<float>
 Constant-expression symbol for g. More...
 
constexpr auto mg = impl::mg<float>
 Constant-expression symbol for mg. More...
 
constexpr auto mug = impl::mug<float>
 Constant-expression symbol for mug. More...
 
constexpr auto ng = impl::ng<float>
 Constant-expression symbol for ng. More...
 
constexpr auto pg = impl::pg<float>
 Constant-expression symbol for pg. More...
 
constexpr auto kg = impl::kg<float>
 Constant-expression symbol for kg. More...
 
constexpr auto Mg = impl::Mg<float>
 Constant-expression symbol for Mg. More...
 
constexpr auto s = impl::s<float>
 Constant-expression symbol for s. More...
 
constexpr auto ms = impl::ms<float>
 Constant-expression symbol for ms. More...
 
constexpr auto mus = impl::mus<float>
 Constant-expression symbol for mus. More...
 
constexpr auto ns = impl::ns<float>
 Constant-expression symbol for ns. More...
 
constexpr auto ps = impl::ps<float>
 Constant-expression symbol for ps. More...
 
constexpr auto fs = impl::fs<float>
 Constant-expression symbol for fs. More...
 
constexpr auto C = impl::C<float>
 Constant-expression symbol for C. More...
 
constexpr auto mC = impl::mC<float>
 Constant-expression symbol for mC. More...
 
constexpr auto muC = impl::muC<float>
 Constant-expression symbol for muC. More...
 
constexpr auto nC = impl::nC<float>
 Constant-expression symbol for nC. More...
 
constexpr auto pC = impl::pC<float>
 Constant-expression symbol for pC. More...
 
constexpr auto K = impl::K<float>
 Constant-expression symbol for K. More...
 
constexpr auto mK = impl::mK<float>
 Constant-expression symbol for mK. More...
 
constexpr auto muK = impl::muK<float>
 Constant-expression symbol for muK. More...
 
constexpr auto nK = impl::nK<float>
 Constant-expression symbol for nK. More...
 
constexpr auto ft = impl::ft<float>
 Constant-expression symbol for ft. More...
 
constexpr auto kft = impl::kft<float>
 Constant-expression symbol for kft. More...
 
constexpr auto in = impl::in<float>
 Constant-expression symbol for in. More...
 
constexpr auto yd = impl::yd<float>
 Constant-expression symbol for yd. More...
 
constexpr auto mi = impl::mi<float>
 Constant-expression symbol for mi. More...
 
constexpr auto N = impl::N<float>
 Constant-expression symbol for N. More...
 
constexpr auto mN = impl::mN<float>
 Constant-expression symbol for mN. More...
 
constexpr auto muN = impl::muN<float>
 Constant-expression symbol for muN. More...
 
constexpr auto kN = impl::kN<float>
 Constant-expression symbol for kN. More...
 
constexpr auto MN = impl::MN<float>
 Constant-expression symbol for MN. More...
 
constexpr auto dyn = impl::dyn<float>
 Constant-expression symbol for dyn. More...
 
constexpr auto J = impl::J<float>
 Constant-expression symbol for J. More...
 
constexpr auto mJ = impl::mJ<float>
 Constant-expression symbol for mJ. More...
 
constexpr auto muJ = impl::muJ<float>
 Constant-expression symbol for muJ. More...
 
constexpr auto kJ = impl::kJ<float>
 Constant-expression symbol for kJ. More...
 
constexpr auto MJ = impl::MJ<float>
 Constant-expression symbol for MJ. More...
 
constexpr auto GJ = impl::GJ<float>
 Constant-expression symbol for GJ. More...
 
constexpr auto erg = impl::erg<float>
 Constant-expression symbol for erg. More...
 
constexpr auto W = impl::W<float>
 Constant-expression symbol for W. More...
 
constexpr auto mW = impl::mW<float>
 Constant-expression symbol for mW. More...
 
constexpr auto muW = impl::muW<float>
 Constant-expression symbol for muW. More...
 
constexpr auto kW = impl::kW<float>
 Constant-expression symbol for kW. More...
 
constexpr auto MW = impl::MW<float>
 Constant-expression symbol for MW. More...
 
constexpr auto GW = impl::GW<float>
 Constant-expression symbol for GW. More...
 
constexpr auto A = impl::A<float>
 Constant-expression symbol for A. More...
 
constexpr auto mA = impl::mA<float>
 Constant-expression symbol for mA. More...
 
constexpr auto muA = impl::muA<float>
 Constant-expression symbol for muA. More...
 

Detailed Description

Single-precision dimensions and units.

Typedef Documentation

using vnix::units::flt::acceleration = typedef decltype(m/s/s)

Definition at line 2206 of file units.hpp.

using vnix::units::flt::area = typedef decltype(m*m)

Definition at line 2212 of file units.hpp.

using vnix::units::flt::charge = typedef basic_statdim<charge_dim.encode(), float>

Type for variable of dimension charge.

Definition at line 1885 of file units.hpp.

using vnix::units::flt::current = typedef decltype(C/s)

Definition at line 2209 of file units.hpp.

using vnix::units::flt::dyndim = typedef basic_dyndim<float>

Type of dimensioned value whose dimension is not known at compile-time.

Definition at line 1666 of file units.hpp.

using vnix::units::flt::energy = typedef decltype(J/1)

Definition at line 2210 of file units.hpp.

using vnix::units::flt::force = typedef decltype(N/1)

Definition at line 2208 of file units.hpp.

using vnix::units::flt::length = typedef basic_statdim<length_dim.encode(), float>

Type for variable of dimension length.

Definition at line 1678 of file units.hpp.

using vnix::units::flt::mass = typedef basic_statdim<mass_dim.encode(), float>

Type for variable of dimension mass.

Definition at line 1762 of file units.hpp.

using vnix::units::flt::momentum = typedef decltype(g*m/s)

Definition at line 2207 of file units.hpp.

using vnix::units::flt::power = typedef decltype(W/1)

Definition at line 2211 of file units.hpp.

using vnix::units::flt::pressure = typedef decltype(N/m/m)

Definition at line 2214 of file units.hpp.

using vnix::units::flt::speed = typedef decltype(m/s)

Definition at line 2205 of file units.hpp.

using vnix::units::flt::temperature = typedef basic_statdim<temperature_dim.encode(), float>

Type for variable of dimension temperature.

Definition at line 1933 of file units.hpp.

using vnix::units::flt::time = typedef basic_statdim<time_dim.encode(), float>

Type for variable of dimension time.

Definition at line 1828 of file units.hpp.

using vnix::units::flt::volume = typedef decltype(m*m*m)

Definition at line 2213 of file units.hpp.

Function Documentation

constexpr auto vnix::units::flt::operator""_A ( long double  v)

Interpret a number, suffixed with '_A', as a (literal) number of amperes.

Definition at line 2183 of file units.hpp.

2183  {
2184  return float(v)*A;
2185 }
constexpr amperes< T > A(T(1))
Template-variable for symbol for amperes.
constexpr auto vnix::units::flt::operator""_C ( long double  v)

Interpret a number, suffixed with '_C', as a (literal) number of coulombs.

Definition at line 1877 of file units.hpp.

1877  {
1878  return coulombs(float(v));
1879 }
constexpr auto coulombs(T v)
Produce dimensioned quantity from number of coulombs.
Definition: units.hpp:1449

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_cm ( long double  v)

Interpret a number, suffixed with '_cm', as a (literal) number of centimeters.

Definition at line 1682 of file units.hpp.

1682  {
1683  return centimeters(float(v));
1684 }
constexpr auto centimeters(T v)
Produce dimensioned quantity from number of centimeters.
Definition: units.hpp:1323

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_dyn ( long double  v)

Interpret a number, suffixed with '_dyn', as a (literal) number of dynes.

Definition at line 2057 of file units.hpp.

2057  {
2058  return float(v)*dyn;
2059 }
constexpr dynes< T > dyn(T(1))
Template-variable for symbol for dynes.
constexpr auto vnix::units::flt::operator""_erg ( long double  v)

Interpret a number, suffixed with '_erg', as a (literal) number of ergs.

Definition at line 2120 of file units.hpp.

2120  {
2121  return float(v)*erg;
2122 }
constexpr ergs< T > erg(T(1))
Template-variable for symbol for ergs.
constexpr auto vnix::units::flt::operator""_fm ( long double  v)

Interpret a number, suffixed with '_fm', as a (literal) number of femtometers.

Definition at line 1727 of file units.hpp.

1727  {
1728  return femtometers(float(v));
1729 }
constexpr auto femtometers(T v)
Produce dimensioned quantity from number of femtometers.
Definition: units.hpp:1353

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_fs ( long double  v)

Interpret a number, suffixed with '_fs', as a (literal) number of femtoseconds.

Definition at line 1868 of file units.hpp.

1868  {
1869  return femtoseconds(float(v));
1870 }
constexpr auto femtoseconds(T v)
Produce dimensioned quantity from number of femtoseconds.
Definition: units.hpp:1443

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_ft ( long double  v)

Interpret a number, suffixed with '_ft', as a (literal) number of feet.

Definition at line 1967 of file units.hpp.

1967  {
1968  return float(v)*ft;
1969 }
constexpr feet< T > ft(T(1))
Template-variable for symbol for feet.
constexpr auto vnix::units::flt::operator""_g ( long double  v)

Interpret a number, suffixed with '_g', as a (literal) number of grams.

Definition at line 1754 of file units.hpp.

1754  {
1755  return grams(float(v));
1756 }
constexpr auto grams(T v)
Produce dimensioned quantity from number of grams.
Definition: units.hpp:1371

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_GJ ( long double  v)

Interpret a number, suffixed with '_GJ', as a (literal) number of gigajoules.

Definition at line 2111 of file units.hpp.

2111  {
2112  return float(v)*GJ;
2113 }
constexpr gigajoules< T > GJ(T(1))
Template-variable for symbol for gigajoules.
constexpr auto vnix::units::flt::operator""_GW ( long double  v)

Interpret a number, suffixed with '_GW', as a (literal) number of gigawatts.

Definition at line 2174 of file units.hpp.

2174  {
2175  return float(v)*GW;
2176 }
constexpr gigawatts< T > GW(T(1))
Template-variable for symbol for gigawatts.
constexpr auto vnix::units::flt::operator""_in ( long double  v)

Interpret a number, suffixed with '_in', as a (literal) number of inches.

Definition at line 1985 of file units.hpp.

1985  {
1986  return float(v)*in;
1987 }
constexpr inches< T > in(T(1))
Template-variable for symbol for inches.
constexpr auto vnix::units::flt::operator""_J ( long double  v)

Interpret a number, suffixed with '_J', as a (literal) number of joules.

Definition at line 2066 of file units.hpp.

2066  {
2067  return float(v)*J;
2068 }
constexpr joules< T > J(T(1))
Template-variable for symbol for joules.
constexpr auto vnix::units::flt::operator""_K ( long double  v)

Interpret a number, suffixed with '_K', as a (literal) number of kelvins.

Definition at line 1925 of file units.hpp.

1925  {
1926  return kelvins(float(v));
1927 }
constexpr auto kelvins(T v)
Produce dimensioned quantity from number of kelvins.
Definition: units.hpp:1479

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_kft ( long double  v)

Interpret a number, suffixed with '_kft', as a (literal) number of kilofeet.

Definition at line 1976 of file units.hpp.

1976  {
1977  return float(v)*kft;
1978 }
constexpr kilofeet< T > kft(T(1))
Template-variable for symbol for kilofeet.
constexpr auto vnix::units::flt::operator""_kg ( long double  v)

Interpret a number, suffixed with '_kg', as a (literal) number of kilograms.

Definition at line 1802 of file units.hpp.

1802  {
1803  return kilograms(float(v));
1804 }
constexpr auto kilograms(T v)
Produce dimensioned quantity from number of kilograms.
Definition: units.hpp:1401

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_kJ ( long double  v)

Interpret a number, suffixed with '_kJ', as a (literal) number of kilojoules.

Definition at line 2093 of file units.hpp.

2093  {
2094  return float(v)*kJ;
2095 }
constexpr kilojoules< T > kJ(T(1))
Template-variable for symbol for kilojoules.
constexpr auto vnix::units::flt::operator""_km ( long double  v)

Interpret a number, suffixed with '_km', as a (literal) number of kilometers.

Definition at line 1736 of file units.hpp.

1736  {
1737  return kilometers(float(v));
1738 }
constexpr auto kilometers(T v)
Produce dimensioned quantity from number of kilometers.
Definition: units.hpp:1359

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_kN ( long double  v)

Interpret a number, suffixed with '_kN', as a (literal) number of kilonewtons.

Definition at line 2039 of file units.hpp.

2039  {
2040  return float(v)*kN;
2041 }
constexpr kilonewtons< T > kN(T(1))
Template-variable for symbol for kilonewtons.
constexpr auto vnix::units::flt::operator""_kW ( long double  v)

Interpret a number, suffixed with '_kW', as a (literal) number of kilowatts.

Definition at line 2156 of file units.hpp.

2156  {
2157  return float(v)*kW;
2158 }
constexpr kilowatts< T > kW(T(1))
Template-variable for symbol for kilowatts.
constexpr auto vnix::units::flt::operator""_m ( long double  v)

Interpret a number, suffixed with '_m', as a (literal) number of meters.

Definition at line 1670 of file units.hpp.

1670  {
1671  return meters(float(v));
1672 }
constexpr auto meters(T v)
Produce dimensioned quantity from number of meters.
Definition: units.hpp:1317

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_mA ( long double  v)

Interpret a number, suffixed with '_mA', as a (literal) number of milliamperes.

Definition at line 2192 of file units.hpp.

2192  {
2193  return float(v)*mA;
2194 }
constexpr milliamperes< T > mA(T(1))
Template-variable for symbol for milliamperes.
constexpr auto vnix::units::flt::operator""_mC ( long double  v)

Interpret a number, suffixed with '_mC', as a (literal) number of millicoulombs.

Definition at line 1889 of file units.hpp.

1889  {
1890  return millicoulombs(float(v));
1891 }
constexpr auto millicoulombs(T v)
Produce dimensioned quantity from number of millicoulombs.
Definition: units.hpp:1455

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_mg ( long double  v)

Interpret a number, suffixed with '_mg', as a (literal) number of milligrams.

Definition at line 1766 of file units.hpp.

1766  {
1767  return milligrams(float(v));
1768 }
constexpr auto milligrams(T v)
Produce dimensioned quantity from number of milligrams.
Definition: units.hpp:1377

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_Mg ( long double  v)

Interpret a number, suffixed with '_Mg', as a (literal) number of megagrams.

Definition at line 1811 of file units.hpp.

1811  {
1812  return megagrams(float(v));
1813 }
constexpr auto megagrams(T v)
Produce dimensioned quantity from number of megagrams.
Definition: units.hpp:1407

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_mi ( long double  v)

Interpret a number, suffixed with '_mi', as a (literal) number of miles.

Definition at line 2003 of file units.hpp.

2003  {
2004  return float(v)*mi;
2005 }
constexpr miles< T > mi(T(1))
Template-variable for symbol for miles.
constexpr auto vnix::units::flt::operator""_mJ ( long double  v)

Interpret a number, suffixed with '_mJ', as a (literal) number of millijoules.

Definition at line 2075 of file units.hpp.

2075  {
2076  return float(v)*mJ;
2077 }
constexpr millijoules< T > mJ(T(1))
Template-variable for symbol for millijoules.
constexpr auto vnix::units::flt::operator""_MJ ( long double  v)

Interpret a number, suffixed with '_MJ', as a (literal) number of megajoules.

Definition at line 2102 of file units.hpp.

2102  {
2103  return float(v)*MJ;
2104 }
constexpr megajoules< T > MJ(T(1))
Template-variable for symbol for megajoules.
constexpr auto vnix::units::flt::operator""_mK ( long double  v)

Interpret a number, suffixed with '_mK', as a (literal) number of millikelvins.

Definition at line 1937 of file units.hpp.

1937  {
1938  return millikelvins(float(v));
1939 }
constexpr auto millikelvins(T v)
Produce dimensioned quantity from number of millikelvins.
Definition: units.hpp:1485

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_mm ( long double  v)

Interpret a number, suffixed with '_mm', as a (literal) number of millimeters.

Definition at line 1691 of file units.hpp.

1691  {
1692  return millimeters(float(v));
1693 }
constexpr auto millimeters(T v)
Produce dimensioned quantity from number of millimeters.
Definition: units.hpp:1329

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_Mm ( long double  v)

Interpret a number, suffixed with '_Mm', as a (literal) number of megameters.

Definition at line 1745 of file units.hpp.

1745  {
1746  return megameters(float(v));
1747 }
constexpr auto megameters(T v)
Produce dimensioned quantity from number of megameters.
Definition: units.hpp:1365

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_mN ( long double  v)

Interpret a number, suffixed with '_mN', as a (literal) number of millinewtons.

Definition at line 2021 of file units.hpp.

2021  {
2022  return float(v)*mN;
2023 }
constexpr millinewtons< T > mN(T(1))
Template-variable for symbol for millinewtons.
constexpr auto vnix::units::flt::operator""_MN ( long double  v)

Interpret a number, suffixed with '_MN', as a (literal) number of meganewtons.

Definition at line 2048 of file units.hpp.

2048  {
2049  return float(v)*MN;
2050 }
constexpr meganewtons< T > MN(T(1))
Template-variable for symbol for meganewtons.
constexpr auto vnix::units::flt::operator""_ms ( long double  v)

Interpret a number, suffixed with '_ms', as a (literal) number of milliseconds.

Definition at line 1832 of file units.hpp.

1832  {
1833  return milliseconds(float(v));
1834 }
constexpr auto milliseconds(T v)
Produce dimensioned quantity from number of milliseconds.
Definition: units.hpp:1419

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_muA ( long double  v)

Interpret a number, suffixed with '_muA', as a (literal) number of microamperes.

Definition at line 2201 of file units.hpp.

2201  {
2202  return float(v)*muA;
2203 }
constexpr microamperes< T > muA(T(1))
Template-variable for symbol for microamperes.
constexpr auto vnix::units::flt::operator""_muC ( long double  v)

Interpret a number, suffixed with '_muC', as a (literal) number of microcoulombs.

Definition at line 1898 of file units.hpp.

1898  {
1899  return microcoulombs(float(v));
1900 }
constexpr auto microcoulombs(T v)
Produce dimensioned quantity from number of microcoulombs.
Definition: units.hpp:1461

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_mug ( long double  v)

Interpret a number, suffixed with '_mug', as a (literal) number of micrograms.

Definition at line 1775 of file units.hpp.

1775  {
1776  return micrograms(float(v));
1777 }
constexpr auto micrograms(T v)
Produce dimensioned quantity from number of micrograms.
Definition: units.hpp:1383

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_muJ ( long double  v)

Interpret a number, suffixed with '_muJ', as a (literal) number of microjoules.

Definition at line 2084 of file units.hpp.

2084  {
2085  return float(v)*muJ;
2086 }
constexpr microjoules< T > muJ(T(1))
Template-variable for symbol for microjoules.
constexpr auto vnix::units::flt::operator""_muK ( long double  v)

Interpret a number, suffixed with '_muK', as a (literal) number of microkelvins.

Definition at line 1946 of file units.hpp.

1946  {
1947  return microkelvins(float(v));
1948 }
constexpr auto microkelvins(T v)
Produce dimensioned quantity from number of microkelvins.
Definition: units.hpp:1491

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_mum ( long double  v)

Interpret a number, suffixed with '_mum', as a (literal) number of micrometers.

Definition at line 1700 of file units.hpp.

1700  {
1701  return micrometers(float(v));
1702 }
constexpr auto micrometers(T v)
Produce dimensioned quantity from number of micrometers.
Definition: units.hpp:1335

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_muN ( long double  v)

Interpret a number, suffixed with '_muN', as a (literal) number of micronewtons.

Definition at line 2030 of file units.hpp.

2030  {
2031  return float(v)*muN;
2032 }
constexpr micronewtons< T > muN(T(1))
Template-variable for symbol for micronewtons.
constexpr auto vnix::units::flt::operator""_mus ( long double  v)

Interpret a number, suffixed with '_mus', as a (literal) number of microseconds.

Definition at line 1841 of file units.hpp.

1841  {
1842  return microseconds(float(v));
1843 }
constexpr auto microseconds(T v)
Produce dimensioned quantity from number of microseconds.
Definition: units.hpp:1425

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_muW ( long double  v)

Interpret a number, suffixed with '_muW', as a (literal) number of microwatts.

Definition at line 2147 of file units.hpp.

2147  {
2148  return float(v)*muW;
2149 }
constexpr microwatts< T > muW(T(1))
Template-variable for symbol for microwatts.
constexpr auto vnix::units::flt::operator""_mW ( long double  v)

Interpret a number, suffixed with '_mW', as a (literal) number of milliwatts.

Definition at line 2138 of file units.hpp.

2138  {
2139  return float(v)*mW;
2140 }
constexpr milliwatts< T > mW(T(1))
Template-variable for symbol for milliwatts.
constexpr auto vnix::units::flt::operator""_MW ( long double  v)

Interpret a number, suffixed with '_MW', as a (literal) number of megawatts.

Definition at line 2165 of file units.hpp.

2165  {
2166  return float(v)*MW;
2167 }
constexpr megawatts< T > MW(T(1))
Template-variable for symbol for megawatts.
constexpr auto vnix::units::flt::operator""_N ( long double  v)

Interpret a number, suffixed with '_N', as a (literal) number of newtons.

Definition at line 2012 of file units.hpp.

2012  {
2013  return float(v)*N;
2014 }
constexpr newtons< T > N(T(1))
Template-variable for symbol for newtons.
constexpr auto vnix::units::flt::operator""_nC ( long double  v)

Interpret a number, suffixed with '_nC', as a (literal) number of nanocoulombs.

Definition at line 1907 of file units.hpp.

1907  {
1908  return nanocoulombs(float(v));
1909 }
constexpr auto nanocoulombs(T v)
Produce dimensioned quantity from number of nanocoulombs.
Definition: units.hpp:1467

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_ng ( long double  v)

Interpret a number, suffixed with '_ng', as a (literal) number of nanograms.

Definition at line 1784 of file units.hpp.

1784  {
1785  return nanograms(float(v));
1786 }
constexpr auto nanograms(T v)
Produce dimensioned quantity from number of nanograms.
Definition: units.hpp:1389

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_nK ( long double  v)

Interpret a number, suffixed with '_nK', as a (literal) number of nanokelvins.

Definition at line 1955 of file units.hpp.

1955  {
1956  return nanokelvins(float(v));
1957 }
constexpr auto nanokelvins(T v)
Produce dimensioned quantity from number of nanokelvins.
Definition: units.hpp:1497

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_nm ( long double  v)

Interpret a number, suffixed with '_nm', as a (literal) number of nanometers.

Definition at line 1709 of file units.hpp.

1709  {
1710  return nanometers(float(v));
1711 }
constexpr auto nanometers(T v)
Produce dimensioned quantity from number of nanometers.
Definition: units.hpp:1341

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_ns ( long double  v)

Interpret a number, suffixed with '_ns', as a (literal) number of nanoseconds.

Definition at line 1850 of file units.hpp.

1850  {
1851  return nanoseconds(float(v));
1852 }
constexpr auto nanoseconds(T v)
Produce dimensioned quantity from number of nanoseconds.
Definition: units.hpp:1431

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_pC ( long double  v)

Interpret a number, suffixed with '_pC', as a (literal) number of picocoulombs.

Definition at line 1916 of file units.hpp.

1916  {
1917  return picocoulombs(float(v));
1918 }
constexpr auto picocoulombs(T v)
Produce dimensioned quantity from number of picocoulombs.
Definition: units.hpp:1473

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_pg ( long double  v)

Interpret a number, suffixed with '_pg', as a (literal) number of picograms.

Definition at line 1793 of file units.hpp.

1793  {
1794  return picograms(float(v));
1795 }
constexpr auto picograms(T v)
Produce dimensioned quantity from number of picograms.
Definition: units.hpp:1395

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_pm ( long double  v)

Interpret a number, suffixed with '_pm', as a (literal) number of picometers.

Definition at line 1718 of file units.hpp.

1718  {
1719  return picometers(float(v));
1720 }
constexpr auto picometers(T v)
Produce dimensioned quantity from number of picometers.
Definition: units.hpp:1347

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_ps ( long double  v)

Interpret a number, suffixed with '_ps', as a (literal) number of picoseconds.

Definition at line 1859 of file units.hpp.

1859  {
1860  return picoseconds(float(v));
1861 }
constexpr auto picoseconds(T v)
Produce dimensioned quantity from number of picoseconds.
Definition: units.hpp:1437

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_s ( long double  v)

Interpret a number, suffixed with '_s', as a (literal) number of seconds.

Definition at line 1820 of file units.hpp.

1820  {
1821  return seconds(float(v));
1822 }
constexpr auto seconds(T v)
Produce dimensioned quantity from number of seconds.
Definition: units.hpp:1413

Here is the call graph for this function:

constexpr auto vnix::units::flt::operator""_W ( long double  v)

Interpret a number, suffixed with '_W', as a (literal) number of watts.

Definition at line 2129 of file units.hpp.

2129  {
2130  return float(v)*W;
2131 }
constexpr watts< T > W(T(1))
Template-variable for symbol for watts.
constexpr auto vnix::units::flt::operator""_yd ( long double  v)

Interpret a number, suffixed with '_yd', as a (literal) number of yards.

Definition at line 1994 of file units.hpp.

1994  {
1995  return float(v)*yd;
1996 }
constexpr yards< T > yd(T(1))
Template-variable for symbol for yards.

Variable Documentation

constexpr auto vnix::units::flt::A = impl::A<float>

Constant-expression symbol for A.

Definition at line 2179 of file units.hpp.

constexpr auto vnix::units::flt::C = impl::C<float>

Constant-expression symbol for C.

Definition at line 1882 of file units.hpp.

constexpr auto vnix::units::flt::cm = impl::cm<float>

Constant-expression symbol for cm.

Definition at line 1687 of file units.hpp.

constexpr auto vnix::units::flt::dyn = impl::dyn<float>

Constant-expression symbol for dyn.

Definition at line 2053 of file units.hpp.

constexpr auto vnix::units::flt::erg = impl::erg<float>

Constant-expression symbol for erg.

Definition at line 2116 of file units.hpp.

constexpr auto vnix::units::flt::fm = impl::fm<float>

Constant-expression symbol for fm.

Definition at line 1732 of file units.hpp.

constexpr auto vnix::units::flt::fs = impl::fs<float>

Constant-expression symbol for fs.

Definition at line 1873 of file units.hpp.

constexpr auto vnix::units::flt::ft = impl::ft<float>

Constant-expression symbol for ft.

Definition at line 1963 of file units.hpp.

constexpr auto vnix::units::flt::g = impl::g<float>

Constant-expression symbol for g.

Definition at line 1759 of file units.hpp.

constexpr auto vnix::units::flt::GJ = impl::GJ<float>

Constant-expression symbol for GJ.

Definition at line 2107 of file units.hpp.

constexpr auto vnix::units::flt::GW = impl::GW<float>

Constant-expression symbol for GW.

Definition at line 2170 of file units.hpp.

constexpr auto vnix::units::flt::in = impl::in<float>

Constant-expression symbol for in.

Definition at line 1981 of file units.hpp.

constexpr auto vnix::units::flt::J = impl::J<float>

Constant-expression symbol for J.

Definition at line 2062 of file units.hpp.

constexpr auto vnix::units::flt::K = impl::K<float>

Constant-expression symbol for K.

Definition at line 1930 of file units.hpp.

constexpr auto vnix::units::flt::kft = impl::kft<float>

Constant-expression symbol for kft.

Definition at line 1972 of file units.hpp.

constexpr auto vnix::units::flt::kg = impl::kg<float>

Constant-expression symbol for kg.

Definition at line 1807 of file units.hpp.

constexpr auto vnix::units::flt::kJ = impl::kJ<float>

Constant-expression symbol for kJ.

Definition at line 2089 of file units.hpp.

constexpr auto vnix::units::flt::km = impl::km<float>

Constant-expression symbol for km.

Definition at line 1741 of file units.hpp.

constexpr auto vnix::units::flt::kN = impl::kN<float>

Constant-expression symbol for kN.

Definition at line 2035 of file units.hpp.

constexpr auto vnix::units::flt::kW = impl::kW<float>

Constant-expression symbol for kW.

Definition at line 2152 of file units.hpp.

constexpr auto vnix::units::flt::m = impl::m<float>

Constant-expression symbol for m.

Definition at line 1675 of file units.hpp.

constexpr auto vnix::units::flt::mA = impl::mA<float>

Constant-expression symbol for mA.

Definition at line 2188 of file units.hpp.

constexpr auto vnix::units::flt::mC = impl::mC<float>

Constant-expression symbol for mC.

Definition at line 1894 of file units.hpp.

constexpr auto vnix::units::flt::mg = impl::mg<float>

Constant-expression symbol for mg.

Definition at line 1771 of file units.hpp.

constexpr auto vnix::units::flt::Mg = impl::Mg<float>

Constant-expression symbol for Mg.

Definition at line 1816 of file units.hpp.

constexpr auto vnix::units::flt::mi = impl::mi<float>

Constant-expression symbol for mi.

Definition at line 1999 of file units.hpp.

constexpr auto vnix::units::flt::mJ = impl::mJ<float>

Constant-expression symbol for mJ.

Definition at line 2071 of file units.hpp.

constexpr auto vnix::units::flt::MJ = impl::MJ<float>

Constant-expression symbol for MJ.

Definition at line 2098 of file units.hpp.

constexpr auto vnix::units::flt::mK = impl::mK<float>

Constant-expression symbol for mK.

Definition at line 1942 of file units.hpp.

constexpr auto vnix::units::flt::mm = impl::mm<float>

Constant-expression symbol for mm.

Definition at line 1696 of file units.hpp.

constexpr auto vnix::units::flt::Mm = impl::Mm<float>

Constant-expression symbol for Mm.

Definition at line 1750 of file units.hpp.

constexpr auto vnix::units::flt::mN = impl::mN<float>

Constant-expression symbol for mN.

Definition at line 2017 of file units.hpp.

constexpr auto vnix::units::flt::MN = impl::MN<float>

Constant-expression symbol for MN.

Definition at line 2044 of file units.hpp.

constexpr auto vnix::units::flt::ms = impl::ms<float>

Constant-expression symbol for ms.

Definition at line 1837 of file units.hpp.

constexpr auto vnix::units::flt::muA = impl::muA<float>

Constant-expression symbol for muA.

Definition at line 2197 of file units.hpp.

constexpr auto vnix::units::flt::muC = impl::muC<float>

Constant-expression symbol for muC.

Definition at line 1903 of file units.hpp.

constexpr auto vnix::units::flt::mug = impl::mug<float>

Constant-expression symbol for mug.

Definition at line 1780 of file units.hpp.

constexpr auto vnix::units::flt::muJ = impl::muJ<float>

Constant-expression symbol for muJ.

Definition at line 2080 of file units.hpp.

constexpr auto vnix::units::flt::muK = impl::muK<float>

Constant-expression symbol for muK.

Definition at line 1951 of file units.hpp.

constexpr auto vnix::units::flt::mum = impl::mum<float>

Constant-expression symbol for mum.

Definition at line 1705 of file units.hpp.

constexpr auto vnix::units::flt::muN = impl::muN<float>

Constant-expression symbol for muN.

Definition at line 2026 of file units.hpp.

constexpr auto vnix::units::flt::mus = impl::mus<float>

Constant-expression symbol for mus.

Definition at line 1846 of file units.hpp.

constexpr auto vnix::units::flt::muW = impl::muW<float>

Constant-expression symbol for muW.

Definition at line 2143 of file units.hpp.

constexpr auto vnix::units::flt::mW = impl::mW<float>

Constant-expression symbol for mW.

Definition at line 2134 of file units.hpp.

constexpr auto vnix::units::flt::MW = impl::MW<float>

Constant-expression symbol for MW.

Definition at line 2161 of file units.hpp.

constexpr auto vnix::units::flt::N = impl::N<float>

Constant-expression symbol for N.

Definition at line 2008 of file units.hpp.

constexpr auto vnix::units::flt::nC = impl::nC<float>

Constant-expression symbol for nC.

Definition at line 1912 of file units.hpp.

constexpr auto vnix::units::flt::ng = impl::ng<float>

Constant-expression symbol for ng.

Definition at line 1789 of file units.hpp.

constexpr auto vnix::units::flt::nK = impl::nK<float>

Constant-expression symbol for nK.

Definition at line 1960 of file units.hpp.

constexpr auto vnix::units::flt::nm = impl::nm<float>

Constant-expression symbol for nm.

Definition at line 1714 of file units.hpp.

constexpr auto vnix::units::flt::ns = impl::ns<float>

Constant-expression symbol for ns.

Definition at line 1855 of file units.hpp.

constexpr auto vnix::units::flt::pC = impl::pC<float>

Constant-expression symbol for pC.

Definition at line 1921 of file units.hpp.

constexpr auto vnix::units::flt::pg = impl::pg<float>

Constant-expression symbol for pg.

Definition at line 1798 of file units.hpp.

constexpr auto vnix::units::flt::pm = impl::pm<float>

Constant-expression symbol for pm.

Definition at line 1723 of file units.hpp.

constexpr auto vnix::units::flt::ps = impl::ps<float>

Constant-expression symbol for ps.

Definition at line 1864 of file units.hpp.

constexpr auto vnix::units::flt::s = impl::s<float>

Constant-expression symbol for s.

Definition at line 1825 of file units.hpp.

constexpr auto vnix::units::flt::W = impl::W<float>

Constant-expression symbol for W.

Definition at line 2125 of file units.hpp.

constexpr auto vnix::units::flt::yd = impl::yd<float>

Constant-expression symbol for yd.

Definition at line 1990 of file units.hpp.