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

Functions

template<char... Digits>
constexpr quanta::frequency::millihertz operator""_mHz ()
 Literal for millihertz (e.g., 1000_mHz).
 
template<char... Digits>
constexpr quanta::frequency::hertz operator""_Hz ()
 Literal for hertz (e.g., 1000_Hz).
 
template<char... Digits>
constexpr quanta::frequency::kilohertz operator""_kHz ()
 Literal for kilohertz (e.g., 80_kHz).
 
template<char... Digits>
constexpr quanta::frequency::megahertz operator""_MHz ()
 Literal for megahertz (e.g., 80_MHz).
 
template<char... Digits>
constexpr quanta::frequency::gigahertz operator""_GHz ()
 Literal for gigahertz (e.g., 2_GHz).
 
template<char... Digits>
constexpr quanta::frequency::terahertz operator""_THz ()
 Literal for terahertz (e.g., 1_THz).
 

Function Documentation

◆ operator""_GHz()

template<char... Digits>
constexpr quanta::frequency::gigahertz quanta::literals::frequency_literals::operator""_GHz ( )
constexpr

Literal for gigahertz (e.g., 2_GHz).

Definition at line 1314 of file frequency.hpp.

◆ operator""_Hz()

template<char... Digits>
constexpr quanta::frequency::hertz quanta::literals::frequency_literals::operator""_Hz ( )
constexpr

Literal for hertz (e.g., 1000_Hz).

Definition at line 1296 of file frequency.hpp.

◆ operator""_kHz()

template<char... Digits>
constexpr quanta::frequency::kilohertz quanta::literals::frequency_literals::operator""_kHz ( )
constexpr

Literal for kilohertz (e.g., 80_kHz).

Definition at line 1302 of file frequency.hpp.

◆ operator""_mHz()

template<char... Digits>
constexpr quanta::frequency::millihertz quanta::literals::frequency_literals::operator""_mHz ( )
constexpr

Literal for millihertz (e.g., 1000_mHz).

Definition at line 1290 of file frequency.hpp.

◆ operator""_MHz()

template<char... Digits>
constexpr quanta::frequency::megahertz quanta::literals::frequency_literals::operator""_MHz ( )
constexpr

Literal for megahertz (e.g., 80_MHz).

Definition at line 1308 of file frequency.hpp.

◆ operator""_THz()

template<char... Digits>
constexpr quanta::frequency::terahertz quanta::literals::frequency_literals::operator""_THz ( )
constexpr

Literal for terahertz (e.g., 1_THz).

Definition at line 1320 of file frequency.hpp.