frequency 1.0.0
Type-safe frequency handling library modeled after std::chrono
Loading...
Searching...
No Matches
frequency_literals Namespace Reference

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

Functions

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

Detailed Description

User-defined literals for frequency types.

Function Documentation

◆ operator""_GHz()

template<char... Digits>
constexpr freq::gigahertz frequency_literals::operator""_GHz ( )
constexpr

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

Definition at line 1259 of file frequency.hpp.

◆ operator""_Hz()

template<char... Digits>
constexpr freq::hertz frequency_literals::operator""_Hz ( )
constexpr

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

Definition at line 1241 of file frequency.hpp.

◆ operator""_kHz()

template<char... Digits>
constexpr freq::kilohertz frequency_literals::operator""_kHz ( )
constexpr

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

Definition at line 1247 of file frequency.hpp.

◆ operator""_mHz()

template<char... Digits>
constexpr freq::millihertz frequency_literals::operator""_mHz ( )
constexpr

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

Definition at line 1235 of file frequency.hpp.

◆ operator""_MHz()

template<char... Digits>
constexpr freq::megahertz frequency_literals::operator""_MHz ( )
constexpr

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

Definition at line 1253 of file frequency.hpp.

◆ operator""_THz()

template<char... Digits>
constexpr freq::terahertz frequency_literals::operator""_THz ( )
constexpr

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

Definition at line 1265 of file frequency.hpp.