quanta 0.1.0
Type-safe units for temperature, frequency, electrical and spatial quantities, modeled after std::chrono
Loading...
Searching...
No Matches
quanta::literals::thermo_literals Namespace Reference

Functions

template<char... Digits>
constexpr quanta::thermo::celsius operator""_c ()
 Literal for celsius (e.g., 25_c).
 
template<char... Digits>
constexpr quanta::thermo::decicelsius operator""_dc ()
 Literal for decicelsius (e.g., 250_dc).
 
template<char... Digits>
constexpr quanta::thermo::millicelsius operator""_mc ()
 Literal for millicelsius (e.g., 25000_mc).
 
template<char... Digits>
constexpr quanta::thermo::kelvin operator""_k ()
 Literal for kelvin (e.g., 298_k).
 
template<char... Digits>
constexpr quanta::thermo::decikelvin operator""_dk ()
 Literal for decikelvin (e.g., 2980_dk).
 
template<char... Digits>
constexpr quanta::thermo::millikelvin operator""_mk ()
 Literal for millikelvin (e.g., 298000_mk).
 
template<char... Digits>
constexpr quanta::thermo::fahrenheit operator""_f ()
 Literal for fahrenheit (e.g., 77_f).
 
template<char... Digits>
constexpr quanta::thermo::decifahrenheit operator""_df ()
 Literal for decifahrenheit (e.g., 770_df).
 
template<char... Digits>
constexpr quanta::thermo::millifahrenheit operator""_mf ()
 Literal for millifahrenheit (e.g., 77000_mf).
 
template<char... Digits>
constexpr quanta::thermo::delta_celsius operator""_delta_c ()
 Literal for delta_celsius (e.g., 5_delta_c); ASCII spelling of _Δc.
 
template<char... Digits>
constexpr quanta::thermo::delta_millicelsius operator""_delta_mc ()
 Literal for delta_millicelsius (e.g., 5000_delta_mc); ASCII spelling of _Δmc.
 
template<char... Digits>
constexpr quanta::thermo::delta_kelvin operator""_delta_k ()
 Literal for delta_kelvin (e.g., 5_delta_k); ASCII spelling of _Δk.
 
template<char... Digits>
constexpr quanta::thermo::delta_millikelvin operator""_delta_mk ()
 Literal for delta_millikelvin (e.g., 5000_delta_mk); ASCII spelling of _Δmk.
 
template<char... Digits>
constexpr quanta::thermo::delta_fahrenheit operator""_delta_f ()
 Literal for delta_fahrenheit (e.g., 9_delta_f); ASCII spelling of _Δf.
 
template<char... Digits>
constexpr quanta::thermo::delta_millifahrenheit operator""_delta_mf ()
 Literal for delta_millifahrenheit (e.g., 9000_delta_mf); ASCII spelling of _Δmf.
 
template<char... Digits>
constexpr quanta::thermo::delta_celsius operator""_Δc ()
 Literal for delta_celsius (e.g., 5_Δc).
 
template<char... Digits>
constexpr quanta::thermo::delta_millicelsius operator""_Δmc ()
 Literal for delta_millicelsius (e.g., 5000_Δmc).
 
template<char... Digits>
constexpr quanta::thermo::delta_kelvin operator""_Δk ()
 Literal for delta_kelvin (e.g., 5_Δk).
 
template<char... Digits>
constexpr quanta::thermo::delta_millikelvin operator""_Δmk ()
 Literal for delta_millikelvin (e.g., 5000_Δmk).
 
template<char... Digits>
constexpr quanta::thermo::delta_fahrenheit operator""_Δf ()
 Literal for delta_fahrenheit (e.g., 9_Δf).
 
template<char... Digits>
constexpr quanta::thermo::delta_millifahrenheit operator""_Δmf ()
 Literal for delta_millifahrenheit (e.g., 9000_Δmf).
 

Function Documentation

◆ operator""_Δc()

template<char... Digits>
constexpr quanta::thermo::delta_celsius quanta::literals::thermo_literals::operator""_Δc ( )
constexpr

Literal for delta_celsius (e.g., 5_Δc).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS); use _delta_c there.

Definition at line 1394 of file thermo.hpp.

◆ operator""_Δf()

template<char... Digits>
constexpr quanta::thermo::delta_fahrenheit quanta::literals::thermo_literals::operator""_Δf ( )
constexpr

Literal for delta_fahrenheit (e.g., 9_Δf).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS); use _delta_f there.

Definition at line 1422 of file thermo.hpp.

◆ operator""_Δk()

template<char... Digits>
constexpr quanta::thermo::delta_kelvin quanta::literals::thermo_literals::operator""_Δk ( )
constexpr

Literal for delta_kelvin (e.g., 5_Δk).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS); use _delta_k there.

Definition at line 1408 of file thermo.hpp.

◆ operator""_Δmc()

template<char... Digits>
constexpr quanta::thermo::delta_millicelsius quanta::literals::thermo_literals::operator""_Δmc ( )
constexpr

Literal for delta_millicelsius (e.g., 5000_Δmc).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS); use _delta_mc there.

Definition at line 1401 of file thermo.hpp.

◆ operator""_Δmf()

template<char... Digits>
constexpr quanta::thermo::delta_millifahrenheit quanta::literals::thermo_literals::operator""_Δmf ( )
constexpr

Literal for delta_millifahrenheit (e.g., 9000_Δmf).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS); use _delta_mf there.

Definition at line 1429 of file thermo.hpp.

◆ operator""_Δmk()

template<char... Digits>
constexpr quanta::thermo::delta_millikelvin quanta::literals::thermo_literals::operator""_Δmk ( )
constexpr

Literal for delta_millikelvin (e.g., 5000_Δmk).

Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS); use _delta_mk there.

Definition at line 1415 of file thermo.hpp.

◆ operator""_c()

template<char... Digits>
constexpr quanta::thermo::celsius quanta::literals::thermo_literals::operator""_c ( )
constexpr

Literal for celsius (e.g., 25_c).

Definition at line 1302 of file thermo.hpp.

◆ operator""_dc()

template<char... Digits>
constexpr quanta::thermo::decicelsius quanta::literals::thermo_literals::operator""_dc ( )
constexpr

Literal for decicelsius (e.g., 250_dc).

Definition at line 1308 of file thermo.hpp.

◆ operator""_delta_c()

template<char... Digits>
constexpr quanta::thermo::delta_celsius quanta::literals::thermo_literals::operator""_delta_c ( )
constexpr

Literal for delta_celsius (e.g., 5_delta_c); ASCII spelling of _Δc.

Definition at line 1356 of file thermo.hpp.

◆ operator""_delta_f()

template<char... Digits>
constexpr quanta::thermo::delta_fahrenheit quanta::literals::thermo_literals::operator""_delta_f ( )
constexpr

Literal for delta_fahrenheit (e.g., 9_delta_f); ASCII spelling of _Δf.

Definition at line 1380 of file thermo.hpp.

◆ operator""_delta_k()

template<char... Digits>
constexpr quanta::thermo::delta_kelvin quanta::literals::thermo_literals::operator""_delta_k ( )
constexpr

Literal for delta_kelvin (e.g., 5_delta_k); ASCII spelling of _Δk.

Definition at line 1368 of file thermo.hpp.

◆ operator""_delta_mc()

template<char... Digits>
constexpr quanta::thermo::delta_millicelsius quanta::literals::thermo_literals::operator""_delta_mc ( )
constexpr

Literal for delta_millicelsius (e.g., 5000_delta_mc); ASCII spelling of _Δmc.

Definition at line 1362 of file thermo.hpp.

◆ operator""_delta_mf()

template<char... Digits>
constexpr quanta::thermo::delta_millifahrenheit quanta::literals::thermo_literals::operator""_delta_mf ( )
constexpr

Literal for delta_millifahrenheit (e.g., 9000_delta_mf); ASCII spelling of _Δmf.

Definition at line 1386 of file thermo.hpp.

◆ operator""_delta_mk()

template<char... Digits>
constexpr quanta::thermo::delta_millikelvin quanta::literals::thermo_literals::operator""_delta_mk ( )
constexpr

Literal for delta_millikelvin (e.g., 5000_delta_mk); ASCII spelling of _Δmk.

Definition at line 1374 of file thermo.hpp.

◆ operator""_df()

template<char... Digits>
constexpr quanta::thermo::decifahrenheit quanta::literals::thermo_literals::operator""_df ( )
constexpr

Literal for decifahrenheit (e.g., 770_df).

Definition at line 1344 of file thermo.hpp.

◆ operator""_dk()

template<char... Digits>
constexpr quanta::thermo::decikelvin quanta::literals::thermo_literals::operator""_dk ( )
constexpr

Literal for decikelvin (e.g., 2980_dk).

Definition at line 1326 of file thermo.hpp.

◆ operator""_f()

template<char... Digits>
constexpr quanta::thermo::fahrenheit quanta::literals::thermo_literals::operator""_f ( )
constexpr

Literal for fahrenheit (e.g., 77_f).

Definition at line 1338 of file thermo.hpp.

◆ operator""_k()

template<char... Digits>
constexpr quanta::thermo::kelvin quanta::literals::thermo_literals::operator""_k ( )
constexpr

Literal for kelvin (e.g., 298_k).

Definition at line 1320 of file thermo.hpp.

◆ operator""_mc()

template<char... Digits>
constexpr quanta::thermo::millicelsius quanta::literals::thermo_literals::operator""_mc ( )
constexpr

Literal for millicelsius (e.g., 25000_mc).

Definition at line 1314 of file thermo.hpp.

◆ operator""_mf()

template<char... Digits>
constexpr quanta::thermo::millifahrenheit quanta::literals::thermo_literals::operator""_mf ( )
constexpr

Literal for millifahrenheit (e.g., 77000_mf).

Definition at line 1350 of file thermo.hpp.

◆ operator""_mk()

template<char... Digits>
constexpr quanta::thermo::millikelvin quanta::literals::thermo_literals::operator""_mk ( )
constexpr

Literal for millikelvin (e.g., 298000_mk).

Definition at line 1332 of file thermo.hpp.