mp_units::safe_int::safe_int

Construct from U

Synopsis

Declared in <mp-units/safe_int.h>
template<typename U>
requires (!treat_as_floating_point<std::remove_cvref_t<U>>) && std::is_constructible_v<T, U>
constexpr
explicit(!detail::is_value_preserving_v<std::remove_cvref_t<U>, T>)
safe_int(U const& v);

Parameters

Name Description
v The object to copy construct from