36template <
class Ratio = std::ratio<1>>
37using Length = Unit<UnitKind::Length, Ratio>;
39template <
class ToLength,
class FromLength>
42 return ToLength(from);
52constexpr auto operator""_mm(
long double n)
56constexpr auto operator""_cm(
long double n)
60constexpr auto operator""_dm(
long double n)
64constexpr auto operator""_m(
long double n)
66 return Meter(
static_cast<float>(n));
68constexpr auto operator""_km(
long double n)
73constexpr auto operator""_mm(
unsigned long long n)
77constexpr auto operator""_cm(
unsigned long long n)
81constexpr auto operator""_dm(
unsigned long long n)
85constexpr auto operator""_m(
unsigned long long n)
87 return Meter(
static_cast<float>(n));
89constexpr auto operator""_km(
unsigned long long n)
Length< std::centi > Centimeter
Length< std::kilo > Kilometer
Unit< UnitKind::Length, Ratio > Length
ToLength length_cast(FromLength const &from)
Length< std::deci > Decimeter
Length< std::milli > Millimeter
This file includes all the types the logdecoder script will decode.