| 47 | |
| 48 | template <typename T, typename Unsigned = typename maybe_make_unsigned<T>::type> |
| 49 | constexpr Unsigned to_unsigned(T signed_) { |
| 50 | return static_cast<Unsigned>(signed_); |
| 51 | } |
| 52 | |
| 53 | // Return (min, max) of a numerical array, ignore nulls. |
| 54 | // For empty array, return the maximal number limit as 'min', and minimal limit as 'max'. |