mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
clean-up
This commit is contained in:
parent
94e2726737
commit
78664d9263
1 changed files with 2 additions and 2 deletions
|
|
@ -286,10 +286,10 @@ template <typename E>
|
||||||
inline constexpr std::size_t count_v = values_v<E>.size();
|
inline constexpr std::size_t count_v = values_v<E>.size();
|
||||||
|
|
||||||
template <typename E>
|
template <typename E>
|
||||||
inline constexpr int min_v = values_v<E>.empty() ? 0 : static_cast<int>(values_v<E>.front());
|
inline constexpr int min_v = static_cast<int>(values_v<E>.front());
|
||||||
|
|
||||||
template <typename E>
|
template <typename E>
|
||||||
inline constexpr int max_v = values_v<E>.empty() ? 0 : static_cast<int>(values_v<E>.back());
|
inline constexpr int max_v = static_cast<int>(values_v<E>.back());
|
||||||
|
|
||||||
template <typename E>
|
template <typename E>
|
||||||
inline constexpr std::size_t range_size_v = range_size<E, min_v<E>, max_v<E>>();
|
inline constexpr std::size_t range_size_v = range_size<E, min_v<E>, max_v<E>>();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue