Functions

  • template <typename To, typename From, FMT_ENABLE_IF(!std::is_same<From, To>::value &&
                                                        std::numeric_limits<From>::is_signed ==
                                                            std::numeric_limits<To>::is_signed)>
    To lossless_integral_conversion (const From from, int & ec)

    Defined at line 45 of file ../../third_party/fmtlib/src/include/fmt/chrono.h

  • template <typename To, typename From, FMT_ENABLE_IF(!std::is_same<From, To>::value &&
                                                        std::numeric_limits<From>::is_signed !=
                                                            std::numeric_limits<To>::is_signed)>
    To lossless_integral_conversion (const From from, int & ec)

    Converts From to To, without loss. If the dynamic value of from

    can't be converted to To without loss, ec is set.

    Defined at line 73 of file ../../third_party/fmtlib/src/include/fmt/chrono.h

  • template <typename To, typename From, FMT_ENABLE_IF(std::is_same<From, To>::value)>
    To lossless_integral_conversion (const From from, int & ec)

    Defined at line 106 of file ../../third_party/fmtlib/src/include/fmt/chrono.h

  • template <typename To, typename From, FMT_ENABLE_IF(!std::is_same<From, To>::value)>
    To safe_float_conversion (const From from, int & ec)

    clang-format off

    converts From to To if possible, otherwise ec is set.

    input | output

    ---------------------------------|---------------

    NaN | NaN

    Inf | Inf

    normal, fits in output | converted (possibly lossy)

    normal, does not fit in output | ec is set

    subnormal | best effort

    -Inf | -Inf

    clang-format on

    Defined at line 128 of file ../../third_party/fmtlib/src/include/fmt/chrono.h

  • template <typename To, typename From, FMT_ENABLE_IF(std::is_same<From, To>::value)>
    To safe_float_conversion (const From from, int & ec)

    Defined at line 150 of file ../../third_party/fmtlib/src/include/fmt/chrono.h

  • template <typename Totypename FromReptypename FromPeriodFMT_ENABLE_IF(std::is_floating_point<FromRep>::value)FMT_ENABLE_IF(std::is_floating_point<typename To::rep>::value)>
    To safe_duration_cast (std::chrono::duration<FromRep, FromPeriod> fromint & ec)

    Safe duration_cast between floating point durations

    Defined at line 160 of file ../../third_party/fmtlib/src/include/fmt/chrono.h