| 727 | |
| 728 | template <typename E, enum_subtype S, typename U = std::underlying_type_t<E>> |
| 729 | constexpr int reflected_min() noexcept { |
| 730 | if constexpr (S == enum_subtype::flags) { |
| 731 | return 0; |
| 732 | } else { |
| 733 | constexpr auto lhs = range_min<E>::value; |
| 734 | constexpr auto rhs = (std::numeric_limits<U>::min)(); |
| 735 | |
| 736 | if constexpr (cmp_less(rhs, lhs)) { |
| 737 | return lhs; |
| 738 | } else { |
| 739 | return rhs; |
| 740 | } |
| 741 | } |
| 742 | } |
| 743 | |
| 744 | template <typename E, enum_subtype S, typename U = std::underlying_type_t<E>> |
| 745 | constexpr int reflected_max() noexcept { |
nothing calls this directly
no test coverage detected