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

Namespaces

namespace  chrono_literals
 
namespace  complex_literals
 
namespace  string_view_literals
 

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""_i (long double d) -> complex< double >
 
constexpr auto operator""_i (unsigned long long d) -> complex< double >
 
constexpr auto operator""_if (long double d) -> complex< float >
 
constexpr auto operator""_if (unsigned long long d) -> complex< float >
 
constexpr auto operator""_il (long double d) -> complex< long double >
 
constexpr auto operator""_il (unsigned long long d) -> complex< long double >
 
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""_sv (char const *str, etl::size_t len) noexcept -> etl::string_view
 Forms a string view of a character literal. Returns etl::string_view{str, len}.
 
constexpr auto operator""_sv (char16_t const *str, etl::size_t len) noexcept -> etl::u16string_view
 Forms a string view of a character literal. Returns etl::u16string_view{str, len}.
 
constexpr auto operator""_sv (char32_t const *str, etl::size_t len) noexcept -> etl::u32string_view
 Forms a string view of a character literal. Returns etl::u32string_view{str, len}.
 
constexpr auto operator""_sv (char8_t const *str, etl::size_t len) noexcept -> etl::u8string_view
 Forms a string view of a character literal. Returns etl::u8string_view{str, len}.
 
constexpr auto operator""_sv (wchar_t const *str, etl::size_t len) noexcept -> etl::wstring_view
 Forms a string view of a character literal. Returns etl::wstring_view{str, len}.
 
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.