Construct from safe_int
Synopsis
Declared in <mp‐units/safe_int.h>
template<std::integral U>
requires (!std::is_same_v<T, U>) && std::is_constructible_v<T, U>
constexpr
explicit(!detail::is_value_preserving_int_v<U, T>)
safe_int(safe_int<U, ErrorPolicy> const& other);
Parameters
| Name | Description |
|---|---|
other |
The object to copy construct from |
Created with MrDocs