6#include <AH/Settings/NamespaceSettings.hpp>
14 constexpr operator unsigned long()
const {
return hertz; }
19constexpr Frequency operator"" _Hz(
unsigned long long hz) {
22constexpr Frequency operator"" _kHz(
long double khz) {
23 return Frequency{(
unsigned long)(khz * 1E3l)};
25constexpr Frequency operator"" _kHz(
unsigned long long khz) {
26 return Frequency{(
unsigned long)(khz * 1E3)};
28constexpr Frequency operator"" _MHz(
long double mhz) {
29 return Frequency{(
unsigned long)(mhz * 1E6l)};
31constexpr Frequency operator"" _MHz(
unsigned long long mhz) {
32 return Frequency{(
unsigned long)(mhz * 1E6)};
#define BEGIN_AH_NAMESPACE
#define AH_DIAGNOSTIC_POP()
#define AH_DIAGNOSTIC_WERROR()
Type-safe class for frequency values.
constexpr Frequency(unsigned long hertz)