thermo 1.0.0
Type-safe temperature handling library modeled after std::chrono
Loading...
Searching...
No Matches
thermo_literals Namespace Reference

User-defined literals for temperature types. More...

Functions

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

Detailed Description

User-defined literals for temperature types.

Function Documentation

◆ operator""_Δc()

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

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

Definition at line 1122 of file thermo.hpp.

◆ operator""_Δf()

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

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

Definition at line 1146 of file thermo.hpp.

◆ operator""_Δk()

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

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

Definition at line 1134 of file thermo.hpp.

◆ operator""_Δmc()

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

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

Definition at line 1128 of file thermo.hpp.

◆ operator""_Δmf()

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

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

Definition at line 1152 of file thermo.hpp.

◆ operator""_Δmk()

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

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

Definition at line 1140 of file thermo.hpp.

◆ operator""_c()

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

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

Definition at line 1068 of file thermo.hpp.

◆ operator""_dc()

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

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

Definition at line 1074 of file thermo.hpp.

◆ operator""_df()

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

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

Definition at line 1110 of file thermo.hpp.

◆ operator""_dk()

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

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

Definition at line 1092 of file thermo.hpp.

◆ operator""_f()

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

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

Definition at line 1104 of file thermo.hpp.

◆ operator""_k()

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

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

Definition at line 1086 of file thermo.hpp.

◆ operator""_mc()

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

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

Definition at line 1080 of file thermo.hpp.

◆ operator""_mf()

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

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

Definition at line 1116 of file thermo.hpp.

◆ operator""_mk()

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

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

Definition at line 1098 of file thermo.hpp.