Literals For Unit Symbols

User defined literals for more conveniently setting the value of physical quantities. More...

Functions

PLAYRHO_CONSTEXPR Mass playrho::operator""_g (unsigned long long int v) noexcept
 SI unit symbol for a gram unit of Mass. More...
 
PLAYRHO_CONSTEXPR Mass playrho::operator""_g (long double v) noexcept
 SI unit symbol for a gram unit of Mass. More...
 
PLAYRHO_CONSTEXPR Mass playrho::operator""_kg (unsigned long long int v) noexcept
 SI unit symbol for a kilogram unit of Mass. More...
 
PLAYRHO_CONSTEXPR Mass playrho::operator""_kg (long double v) noexcept
 SI unit symbol for a kilogram unit of Mass. More...
 
PLAYRHO_CONSTEXPR Mass playrho::operator""_Pg (unsigned long long int v) noexcept
 SI unit symbol for a petagram unit of Mass. More...
 
PLAYRHO_CONSTEXPR Mass playrho::operator""_Pg (long double v) noexcept
 SI unit symbol for a petagram unit of Mass. More...
 
PLAYRHO_CONSTEXPR Mass playrho::operator""_Yg (unsigned long long int v) noexcept
 SI unit symbol for a yottagram unit of Mass. More...
 
PLAYRHO_CONSTEXPR Mass playrho::operator""_Yg (long double v) noexcept
 SI unit symbol for a yottagram unit of Mass. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_m (unsigned long long int v) noexcept
 SI unit symbol for a meter of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_m (long double v) noexcept
 SI unit symbol for a meter of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_dm (unsigned long long int v) noexcept
 SI unit symbol for a decimeter of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_dm (long double v) noexcept
 SI unit symbol for a decimeter of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_cm (unsigned long long int v) noexcept
 SI unit symbol for a centimeter of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_cm (long double v) noexcept
 SI unit symbol for a centimeter of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_Gm (unsigned long long int v) noexcept
 SI unit symbol for a gigameter unit of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_Gm (long double v) noexcept
 SI unit symbol for a gigameter unit of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_Mm (unsigned long long int v) noexcept
 SI unit symbol for a megameter unit of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_Mm (long double v) noexcept
 SI unit symbol for a megameter unit of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_km (unsigned long long int v) noexcept
 SI symbol for a kilometer unit of Length. More...
 
PLAYRHO_CONSTEXPR Length playrho::operator""_km (long double v) noexcept
 SI symbol for a kilometer unit of Length. More...
 
PLAYRHO_CONSTEXPR Time playrho::operator""_s (unsigned long long int v) noexcept
 SI symbol for a second unit of Time. More...
 
PLAYRHO_CONSTEXPR Time playrho::operator""_s (long double v) noexcept
 SI symbol for a second unit of Time. More...
 
PLAYRHO_CONSTEXPR Time playrho::operator""_min (unsigned long long int v) noexcept
 SI symbol for a minute unit of Time. More...
 
PLAYRHO_CONSTEXPR Time playrho::operator""_min (long double v) noexcept
 SI symbol for a minute unit of Time. More...
 
PLAYRHO_CONSTEXPR Time playrho::operator""_h (unsigned long long int v) noexcept
 Symbol for an hour unit of Time. More...
 
PLAYRHO_CONSTEXPR Time playrho::operator""_h (long double v) noexcept
 Symbol for an hour unit of Time. More...
 
PLAYRHO_CONSTEXPR Time playrho::operator""_d (unsigned long long int v) noexcept
 Symbol for a day unit of Time. More...
 
PLAYRHO_CONSTEXPR Time playrho::operator""_d (long double v) noexcept
 Symbol for a day unit of Time. More...
 
PLAYRHO_CONSTEXPR Angle playrho::operator""_rad (unsigned long long int v) noexcept
 SI symbol for a radian unit of Angle. More...
 
PLAYRHO_CONSTEXPR Angle playrho::operator""_rad (long double v) noexcept
 SI symbol for a radian unit of Angle. More...
 
PLAYRHO_CONSTEXPR Angle playrho::operator""_deg (unsigned long long int v) noexcept
 Abbreviation for a degree unit of Angle. More...
 
PLAYRHO_CONSTEXPR Angle playrho::operator""_deg (long double v) noexcept
 Abbreviation for a degree unit of Angle. More...
 
PLAYRHO_CONSTEXPR Force playrho::operator""_N (unsigned long long int v) noexcept
 SI symbol for a newton unit of Force. More...
 
PLAYRHO_CONSTEXPR Force playrho::operator""_N (long double v) noexcept
 SI symbol for a newton unit of Force. More...
 
PLAYRHO_CONSTEXPR Area playrho::operator""_m2 (unsigned long long int v) noexcept
 Abbreviation for meter squared unit of Area. More...
 
PLAYRHO_CONSTEXPR Area playrho::operator""_m2 (long double v) noexcept
 Abbreviation for meter squared unit of Area. More...
 
PLAYRHO_CONSTEXPR LinearVelocity playrho::operator""_mps (unsigned long long int v) noexcept
 Abbreviation for meter per second. More...
 
PLAYRHO_CONSTEXPR LinearVelocity playrho::operator""_mps (long double v) noexcept
 Abbreviation for meter per second. More...
 
PLAYRHO_CONSTEXPR LinearVelocity playrho::operator""_kps (unsigned long long int v) noexcept
 Abbreviation for kilometer per second. More...
 
PLAYRHO_CONSTEXPR LinearVelocity playrho::operator""_kps (long double v) noexcept
 Abbreviation for kilometer per second. More...
 
PLAYRHO_CONSTEXPR LinearAcceleration playrho::operator""_mps2 (unsigned long long int v) noexcept
 Abbreviation for meter per second squared. More...
 
PLAYRHO_CONSTEXPR LinearAcceleration playrho::operator""_mps2 (long double v) noexcept
 Abbreviation for meter per second squared. More...
 
PLAYRHO_CONSTEXPR Frequency playrho::operator""_Hz (unsigned long long int v) noexcept
 SI symbol for a hertz unit of Frequency. More...
 
PLAYRHO_CONSTEXPR Frequency playrho::operator""_Hz (long double v) noexcept
 SI symbol for a hertz unit of Frequency. More...
 
PLAYRHO_CONSTEXPR Torque playrho::operator""_Nm (unsigned long long int v) noexcept
 Abbreviation for newton-meter unit of torque. More...
 
PLAYRHO_CONSTEXPR Torque playrho::operator""_Nm (long double v) noexcept
 Abbreviation for newton-meter unit of torque. More...
 
PLAYRHO_CONSTEXPR Momentum playrho::operator""_Ns (unsigned long long int v) noexcept
 SI symbol for a newton second of impulse. More...
 
PLAYRHO_CONSTEXPR Momentum playrho::operator""_Ns (long double v) noexcept
 SI symbol for a newton second of impulse. More...
 
PLAYRHO_CONSTEXPR AreaDensity playrho::operator""_kgpm2 (unsigned long long int v) noexcept
 Abbreviation for kilogram per square meter. More...
 
PLAYRHO_CONSTEXPR AreaDensity playrho::operator""_kgpm2 (long double v) noexcept
 Abbreviation for kilogram per square meter. More...
 
PLAYRHO_CONSTEXPR AngularVelocity playrho::operator""_rpm (unsigned long long int v) noexcept
 Abbreviation for revolutions per minute. More...
 
PLAYRHO_CONSTEXPR AngularVelocity playrho::operator""_rpm (long double v) noexcept
 Abbreviation for revolutions per minute. More...
 

Detailed Description

User defined literals for more conveniently setting the value of physical quantities.

See also
Physical Quantity Types
Units For Physical Quantities

Function Documentation

◆ operator""_g() [1/2]

PLAYRHO_CONSTEXPR Mass playrho::operator""_g ( unsigned long long int  v)
inlinenoexcept

SI unit symbol for a gram unit of Mass.

See also
https://en.wikipedia.org/wiki/Gram

Definition at line 401 of file Units.hpp.

◆ operator""_g() [2/2]

PLAYRHO_CONSTEXPR Mass playrho::operator""_g ( long double  v)
inlinenoexcept

SI unit symbol for a gram unit of Mass.

See also
https://en.wikipedia.org/wiki/Gram

Definition at line 408 of file Units.hpp.

◆ operator""_kg() [1/2]

PLAYRHO_CONSTEXPR Mass playrho::operator""_kg ( unsigned long long int  v)
inlinenoexcept

SI unit symbol for a kilogram unit of Mass.

See also
Kilogram
https://en.wikipedia.org/wiki/Kilogram

Definition at line 416 of file Units.hpp.

◆ operator""_kg() [2/2]

PLAYRHO_CONSTEXPR Mass playrho::operator""_kg ( long double  v)
inlinenoexcept

SI unit symbol for a kilogram unit of Mass.

See also
Kilogram
https://en.wikipedia.org/wiki/Kilogram

Definition at line 424 of file Units.hpp.

◆ operator""_Pg() [1/2]

PLAYRHO_CONSTEXPR Mass playrho::operator""_Pg ( unsigned long long int  v)
inlinenoexcept

SI unit symbol for a petagram unit of Mass.

See also
https://en.wikipedia.org/wiki/Orders_of_magnitude_(mass)

Definition at line 431 of file Units.hpp.

◆ operator""_Pg() [2/2]

PLAYRHO_CONSTEXPR Mass playrho::operator""_Pg ( long double  v)
inlinenoexcept

SI unit symbol for a petagram unit of Mass.

See also
https://en.wikipedia.org/wiki/Orders_of_magnitude_(mass)

Definition at line 438 of file Units.hpp.

◆ operator""_Yg() [1/2]

PLAYRHO_CONSTEXPR Mass playrho::operator""_Yg ( unsigned long long int  v)
inlinenoexcept

SI unit symbol for a yottagram unit of Mass.

See also
https://en.wikipedia.org/wiki/Orders_of_magnitude_(mass)

Definition at line 445 of file Units.hpp.

◆ operator""_Yg() [2/2]

PLAYRHO_CONSTEXPR Mass playrho::operator""_Yg ( long double  v)
inlinenoexcept

SI unit symbol for a yottagram unit of Mass.

See also
https://en.wikipedia.org/wiki/Orders_of_magnitude_(mass)

Definition at line 452 of file Units.hpp.

◆ operator""_m() [1/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_m ( unsigned long long int  v)
inlinenoexcept

SI unit symbol for a meter of Length.

See also
Meter
https://en.wikipedia.org/wiki/Metre

Definition at line 460 of file Units.hpp.

◆ operator""_m() [2/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_m ( long double  v)
inlinenoexcept

SI unit symbol for a meter of Length.

See also
Meter
https://en.wikipedia.org/wiki/Metre

Definition at line 468 of file Units.hpp.

◆ operator""_dm() [1/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_dm ( unsigned long long int  v)
inlinenoexcept

SI unit symbol for a decimeter of Length.

See also
https://en.wikipedia.org/wiki/Decimetre

Definition at line 475 of file Units.hpp.

◆ operator""_dm() [2/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_dm ( long double  v)
inlinenoexcept

SI unit symbol for a decimeter of Length.

See also
https://en.wikipedia.org/wiki/Decimetre

Definition at line 482 of file Units.hpp.

◆ operator""_cm() [1/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_cm ( unsigned long long int  v)
inlinenoexcept

SI unit symbol for a centimeter of Length.

See also
https://en.wikipedia.org/wiki/Centimetre

Definition at line 489 of file Units.hpp.

◆ operator""_cm() [2/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_cm ( long double  v)
inlinenoexcept

SI unit symbol for a centimeter of Length.

See also
https://en.wikipedia.org/wiki/Centimetre

Definition at line 496 of file Units.hpp.

◆ operator""_Gm() [1/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_Gm ( unsigned long long int  v)
inlinenoexcept

SI unit symbol for a gigameter unit of Length.

See also
https://en.wikipedia.org/wiki/Gigametre

Definition at line 503 of file Units.hpp.

◆ operator""_Gm() [2/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_Gm ( long double  v)
inlinenoexcept

SI unit symbol for a gigameter unit of Length.

See also
https://en.wikipedia.org/wiki/Gigametre

Definition at line 510 of file Units.hpp.

◆ operator""_Mm() [1/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_Mm ( unsigned long long int  v)
inlinenoexcept

SI unit symbol for a megameter unit of Length.

See also
https://en.wikipedia.org/wiki/Megametre

Definition at line 517 of file Units.hpp.

◆ operator""_Mm() [2/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_Mm ( long double  v)
inlinenoexcept

SI unit symbol for a megameter unit of Length.

See also
https://en.wikipedia.org/wiki/Megametre

Definition at line 524 of file Units.hpp.

◆ operator""_km() [1/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_km ( unsigned long long int  v)
inlinenoexcept

SI symbol for a kilometer unit of Length.

See also
https://en.wikipedia.org/wiki/Kilometre

Definition at line 531 of file Units.hpp.

◆ operator""_km() [2/2]

PLAYRHO_CONSTEXPR Length playrho::operator""_km ( long double  v)
inlinenoexcept

SI symbol for a kilometer unit of Length.

See also
https://en.wikipedia.org/wiki/Kilometre

Definition at line 538 of file Units.hpp.

◆ operator""_s() [1/2]

PLAYRHO_CONSTEXPR Time playrho::operator""_s ( unsigned long long int  v)
inlinenoexcept

SI symbol for a second unit of Time.

See also
Second
https://en.wikipedia.org/wiki/Second

Definition at line 546 of file Units.hpp.

◆ operator""_s() [2/2]

PLAYRHO_CONSTEXPR Time playrho::operator""_s ( long double  v)
inlinenoexcept

SI symbol for a second unit of Time.

See also
Second
https://en.wikipedia.org/wiki/Second

Definition at line 554 of file Units.hpp.

◆ operator""_min() [1/2]

PLAYRHO_CONSTEXPR Time playrho::operator""_min ( unsigned long long int  v)
inlinenoexcept

SI symbol for a minute unit of Time.

See also
https://en.wikipedia.org/wiki/Minute

Definition at line 561 of file Units.hpp.

◆ operator""_min() [2/2]

PLAYRHO_CONSTEXPR Time playrho::operator""_min ( long double  v)
inlinenoexcept

SI symbol for a minute unit of Time.

See also
https://en.wikipedia.org/wiki/Minute

Definition at line 568 of file Units.hpp.

◆ operator""_h() [1/2]

PLAYRHO_CONSTEXPR Time playrho::operator""_h ( unsigned long long int  v)
inlinenoexcept

Symbol for an hour unit of Time.

See also
https://en.wikipedia.org/wiki/Hour

Definition at line 575 of file Units.hpp.

◆ operator""_h() [2/2]

PLAYRHO_CONSTEXPR Time playrho::operator""_h ( long double  v)
inlinenoexcept

Symbol for an hour unit of Time.

See also
https://en.wikipedia.org/wiki/Hour

Definition at line 582 of file Units.hpp.

◆ operator""_d() [1/2]

PLAYRHO_CONSTEXPR Time playrho::operator""_d ( unsigned long long int  v)
inlinenoexcept

Symbol for a day unit of Time.

See also
https://en.wikipedia.org/wiki/Day

Definition at line 589 of file Units.hpp.

◆ operator""_d() [2/2]

PLAYRHO_CONSTEXPR Time playrho::operator""_d ( long double  v)
inlinenoexcept

Symbol for a day unit of Time.

See also
https://en.wikipedia.org/wiki/Day

Definition at line 596 of file Units.hpp.

◆ operator""_rad() [1/2]

PLAYRHO_CONSTEXPR Angle playrho::operator""_rad ( unsigned long long int  v)
inlinenoexcept

SI symbol for a radian unit of Angle.

See also
Radian.
https://en.wikipedia.org/wiki/Radian

Definition at line 604 of file Units.hpp.

◆ operator""_rad() [2/2]

PLAYRHO_CONSTEXPR Angle playrho::operator""_rad ( long double  v)
inlinenoexcept

SI symbol for a radian unit of Angle.

See also
Radian.
https://en.wikipedia.org/wiki/Radian

Definition at line 612 of file Units.hpp.

◆ operator""_deg() [1/2]

PLAYRHO_CONSTEXPR Angle playrho::operator""_deg ( unsigned long long int  v)
inlinenoexcept

Abbreviation for a degree unit of Angle.

See also
Degree.
https://en.wikipedia.org/wiki/Degree_(angle)

Definition at line 620 of file Units.hpp.

◆ operator""_deg() [2/2]

PLAYRHO_CONSTEXPR Angle playrho::operator""_deg ( long double  v)
inlinenoexcept

Abbreviation for a degree unit of Angle.

See also
Degree.
https://en.wikipedia.org/wiki/Degree_(angle)

Definition at line 628 of file Units.hpp.

◆ operator""_N() [1/2]

PLAYRHO_CONSTEXPR Force playrho::operator""_N ( unsigned long long int  v)
inlinenoexcept

SI symbol for a newton unit of Force.

See also
Newton
https://en.wikipedia.org/wiki/Newton_(unit)

Definition at line 636 of file Units.hpp.

◆ operator""_N() [2/2]

PLAYRHO_CONSTEXPR Force playrho::operator""_N ( long double  v)
inlinenoexcept

SI symbol for a newton unit of Force.

See also
Newton
https://en.wikipedia.org/wiki/Newton_(unit)

Definition at line 644 of file Units.hpp.

◆ operator""_m2() [1/2]

PLAYRHO_CONSTEXPR Area playrho::operator""_m2 ( unsigned long long int  v)
inlinenoexcept

Abbreviation for meter squared unit of Area.

See also
SquareMeter

Definition at line 651 of file Units.hpp.

◆ operator""_m2() [2/2]

PLAYRHO_CONSTEXPR Area playrho::operator""_m2 ( long double  v)
inlinenoexcept

Abbreviation for meter squared unit of Area.

See also
SquareMeter

Definition at line 658 of file Units.hpp.

◆ operator""_mps() [1/2]

PLAYRHO_CONSTEXPR LinearVelocity playrho::operator""_mps ( unsigned long long int  v)
inlinenoexcept

Abbreviation for meter per second.

See also
https://en.wikipedia.org/wiki/Metre_per_second
Meter
Second
MeterPerSecond

Definition at line 668 of file Units.hpp.

◆ operator""_mps() [2/2]

PLAYRHO_CONSTEXPR LinearVelocity playrho::operator""_mps ( long double  v)
inlinenoexcept

Abbreviation for meter per second.

See also
https://en.wikipedia.org/wiki/Metre_per_second
Meter
Second
MeterPerSecond

Definition at line 678 of file Units.hpp.

◆ operator""_kps() [1/2]

PLAYRHO_CONSTEXPR LinearVelocity playrho::operator""_kps ( unsigned long long int  v)
inlinenoexcept

Abbreviation for kilometer per second.

See also
https://en.wikipedia.org/wiki/Metre_per_second
Second

Definition at line 686 of file Units.hpp.

◆ operator""_kps() [2/2]

PLAYRHO_CONSTEXPR LinearVelocity playrho::operator""_kps ( long double  v)
inlinenoexcept

Abbreviation for kilometer per second.

See also
https://en.wikipedia.org/wiki/Metre_per_second
Second

Definition at line 694 of file Units.hpp.

◆ operator""_mps2() [1/2]

PLAYRHO_CONSTEXPR LinearAcceleration playrho::operator""_mps2 ( unsigned long long int  v)
inlinenoexcept

Abbreviation for meter per second squared.

See also
https://en.wikipedia.org/wiki/Metre_per_second_squared
MeterPerSquareSecond

Definition at line 702 of file Units.hpp.

◆ operator""_mps2() [2/2]

PLAYRHO_CONSTEXPR LinearAcceleration playrho::operator""_mps2 ( long double  v)
inlinenoexcept

Abbreviation for meter per second squared.

See also
https://en.wikipedia.org/wiki/Metre_per_second_squared
MeterPerSquareSecond

Definition at line 710 of file Units.hpp.

◆ operator""_Hz() [1/2]

PLAYRHO_CONSTEXPR Frequency playrho::operator""_Hz ( unsigned long long int  v)
inlinenoexcept

SI symbol for a hertz unit of Frequency.

See also
Hertz
https://en.wikipedia.org/wiki/Hertz

Definition at line 718 of file Units.hpp.

◆ operator""_Hz() [2/2]

PLAYRHO_CONSTEXPR Frequency playrho::operator""_Hz ( long double  v)
inlinenoexcept

SI symbol for a hertz unit of Frequency.

See also
Hertz
https://en.wikipedia.org/wiki/Hertz

Definition at line 726 of file Units.hpp.

◆ operator""_Nm() [1/2]

PLAYRHO_CONSTEXPR Torque playrho::operator""_Nm ( unsigned long long int  v)
inlinenoexcept

Abbreviation for newton-meter unit of torque.

See also
NewtonMeter
https://en.wikipedia.org/wiki/Newton_metre

Definition at line 734 of file Units.hpp.

◆ operator""_Nm() [2/2]

PLAYRHO_CONSTEXPR Torque playrho::operator""_Nm ( long double  v)
inlinenoexcept

Abbreviation for newton-meter unit of torque.

See also
NewtonMeter
https://en.wikipedia.org/wiki/Newton_metre

Definition at line 742 of file Units.hpp.

◆ operator""_Ns() [1/2]

PLAYRHO_CONSTEXPR Momentum playrho::operator""_Ns ( unsigned long long int  v)
inlinenoexcept

SI symbol for a newton second of impulse.

See also
NewtonSecond
https://en.wikipedia.org/wiki/Newton_second

Definition at line 750 of file Units.hpp.

◆ operator""_Ns() [2/2]

PLAYRHO_CONSTEXPR Momentum playrho::operator""_Ns ( long double  v)
inlinenoexcept

SI symbol for a newton second of impulse.

See also
NewtonSecond
https://en.wikipedia.org/wiki/Newton_second

Definition at line 758 of file Units.hpp.

◆ operator""_kgpm2() [1/2]

PLAYRHO_CONSTEXPR AreaDensity playrho::operator""_kgpm2 ( unsigned long long int  v)
inlinenoexcept

Abbreviation for kilogram per square meter.

Definition at line 764 of file Units.hpp.

◆ operator""_kgpm2() [2/2]

PLAYRHO_CONSTEXPR AreaDensity playrho::operator""_kgpm2 ( long double  v)
inlinenoexcept

Abbreviation for kilogram per square meter.

Definition at line 770 of file Units.hpp.

◆ operator""_rpm() [1/2]

PLAYRHO_CONSTEXPR AngularVelocity playrho::operator""_rpm ( unsigned long long int  v)
inlinenoexcept

Abbreviation for revolutions per minute.

See also
RevolutionsPerMinute

Definition at line 777 of file Units.hpp.

◆ operator""_rpm() [2/2]

PLAYRHO_CONSTEXPR AngularVelocity playrho::operator""_rpm ( long double  v)
inlinenoexcept

Abbreviation for revolutions per minute.

See also
RevolutionsPerMinute

Definition at line 784 of file Units.hpp.