fmt::safe_duration_cast::lossless_integral_conversion

Converts From to To, without loss. If the dynamic value of from can't be converted to To without loss, ec is set.

Synopses

Declared in <fmt/chrono.h>
template<
    typename To,
    typename From>
constexpr
To
lossless_integral_conversion(
    From const from,
    int& ec);
» more...

Converts From to To, without loss. If the dynamic value of from can't be converted to To without loss, ec is set.

template<
    typename To,
    typename From>
constexpr
To
lossless_integral_conversion(
    From const from,
    int& ec);
» more...
template<
    typename To,
    typename From>
constexpr
To
lossless_integral_conversion(
    From const from,
    int& ec);
» more...

Created with MrDocs