tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
etl::literals::chrono_literals Namespace Reference

Functions

constexpr auto operator""_d (unsigned long long d) noexcept -> etl::chrono::day
 Forms a etl::chrono::day literal representing a day of the month in the calendar.
 
constexpr auto operator""_h (long double h) -> etl::chrono::duration< long double, ratio< 3600, 1 > >
 Forms a etl::chrono::duration literal representing hours. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::hours.
 
constexpr auto operator""_h (unsigned long long h) -> etl::chrono::hours
 Forms a etl::chrono::duration literal representing hours. Integer literal, returns exactly etl::chrono::hours(hrs).
 
constexpr auto operator""_min (long double m) -> etl::chrono::duration< long double, etl::ratio< 60, 1 > >
 Forms a etl::chrono::duration literal representing minutes. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::minutes.
 
constexpr auto operator""_min (unsigned long long m) -> etl::chrono::minutes
 Forms a etl::chrono::duration literal representing minutes. Integer literal, returns exactly etl::chrono::minutes(mins).
 
constexpr auto operator""_ms (long double m) -> etl::chrono::duration< long double, etl::milli >
 Forms a etl::chrono::duration literal representing milliseconds. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::milliseconds.
 
constexpr auto operator""_ms (unsigned long long m) -> etl::chrono::milliseconds
 Forms a etl::chrono::duration literal representing milliseconds. Integer literal, returns exactly etl::chrono::milliseconds(mins).
 
constexpr auto operator""_ns (long double m) -> etl::chrono::duration< long double, etl::nano >
 Forms a etl::chrono::duration literal representing nanoseconds. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::nanoseconds.
 
constexpr auto operator""_ns (unsigned long long m) -> etl::chrono::nanoseconds
 Forms a etl::chrono::duration literal representing nanoseconds. Integer literal, returns exactly etl::chrono::nanoseconds(mins).
 
constexpr auto operator""_s (long double m) -> etl::chrono::duration< long double >
 Forms a etl::chrono::duration literal representing seconds. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::seconds.
 
constexpr auto operator""_s (unsigned long long m) -> etl::chrono::seconds
 Forms a etl::chrono::duration literal representing seconds. Integer literal, returns exactly etl::chrono::seconds(mins).
 
constexpr auto operator""_us (long double m) -> etl::chrono::duration< long double, etl::micro >
 Forms a etl::chrono::duration literal representing microseconds. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::microseconds.
 
constexpr auto operator""_us (unsigned long long m) -> etl::chrono::microseconds
 Forms a etl::chrono::duration literal representing microseconds. Integer literal, returns exactly etl::chrono::microseconds(mins).
 
constexpr auto operator""_y (unsigned long long y) noexcept -> etl::chrono::year
 Forms a etl::chrono::year literal representing a year in the proleptic Gregorian calendar.
 

Function Documentation

◆ operator""_d()

auto operator""_d ( unsigned long long d) -> etl::chrono::day
nodiscardconstexprnoexcept

Forms a etl::chrono::day literal representing a day of the month in the calendar.

◆ operator""_h() [1/2]

auto operator""_h ( long double h) -> etl::chrono::duration<long double, ratio<3600, 1>>
constexpr

Forms a etl::chrono::duration literal representing hours. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::hours.

◆ operator""_h() [2/2]

auto operator""_h ( unsigned long long h) -> etl::chrono::hours
constexpr

Forms a etl::chrono::duration literal representing hours. Integer literal, returns exactly etl::chrono::hours(hrs).

◆ operator""_min() [1/2]

auto operator""_min ( long double m) -> etl::chrono::duration<long double, etl::ratio<60, 1>>
constexpr

Forms a etl::chrono::duration literal representing minutes. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::minutes.

◆ operator""_min() [2/2]

auto operator""_min ( unsigned long long m) -> etl::chrono::minutes
constexpr

Forms a etl::chrono::duration literal representing minutes. Integer literal, returns exactly etl::chrono::minutes(mins).

◆ operator""_ms() [1/2]

auto operator""_ms ( long double m) -> etl::chrono::duration<long double, etl::milli>
constexpr

Forms a etl::chrono::duration literal representing milliseconds. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::milliseconds.

◆ operator""_ms() [2/2]

auto operator""_ms ( unsigned long long m) -> etl::chrono::milliseconds
constexpr

Forms a etl::chrono::duration literal representing milliseconds. Integer literal, returns exactly etl::chrono::milliseconds(mins).

◆ operator""_ns() [1/2]

auto operator""_ns ( long double m) -> etl::chrono::duration<long double, etl::nano>
constexpr

Forms a etl::chrono::duration literal representing nanoseconds. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::nanoseconds.

◆ operator""_ns() [2/2]

auto operator""_ns ( unsigned long long m) -> etl::chrono::nanoseconds
constexpr

Forms a etl::chrono::duration literal representing nanoseconds. Integer literal, returns exactly etl::chrono::nanoseconds(mins).

◆ operator""_s() [1/2]

auto operator""_s ( long double m) -> etl::chrono::duration<long double>
constexpr

Forms a etl::chrono::duration literal representing seconds. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::seconds.

◆ operator""_s() [2/2]

auto operator""_s ( unsigned long long m) -> etl::chrono::seconds
constexpr

Forms a etl::chrono::duration literal representing seconds. Integer literal, returns exactly etl::chrono::seconds(mins).

◆ operator""_us() [1/2]

auto operator""_us ( long double m) -> etl::chrono::duration<long double, etl::micro>
constexpr

Forms a etl::chrono::duration literal representing microseconds. Floating-point literal, returns a floating-point duration equivalent to etl::chrono::microseconds.

◆ operator""_us() [2/2]

auto operator""_us ( unsigned long long m) -> etl::chrono::microseconds
constexpr

Forms a etl::chrono::duration literal representing microseconds. Integer literal, returns exactly etl::chrono::microseconds(mins).

◆ operator""_y()

auto operator""_y ( unsigned long long y) -> etl::chrono::year
nodiscardconstexprnoexcept

Forms a etl::chrono::year literal representing a year in the proleptic Gregorian calendar.