folly::fallback::is_nothrow_convertible_v

A trait variable that is true when From is nothrow-convertible to To.

Synopsis

Declared in <folly/Traits.h>

template<
    typename From,
    typename To>
inline constexpr bool is_nothrow_convertible_v = (std::is_void<From>::value && std::is_void<To>::value) ||
    ( //
        std::is_convertible<From, To>::value &&
        std::is_nothrow_constructible<To, From>::value);