diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 84cd1f3..2da8c63 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -189,14 +189,16 @@ struct is_unscoped_enum_impl : std::bool_constant struct is_unscoped_enum : detail::is_unscoped_enum_impl {}; template inline constexpr bool is_unscoped_enum_v = is_unscoped_enum::value; -// Checks whether T is an Scoped enumeration type. Provides the member constant value which is equal to true, if T is an [Scoped enumeration](https://en.cppreference.com/w/cpp/language/enum#Scoped_enumerations) type. Otherwise, value is equal to false. +// Checks whether T is an Scoped enumeration type. +// Provides the member constant value which is equal to true, if T is an [Scoped enumeration](https://en.cppreference.com/w/cpp/language/enum#Scoped_enumerations) type. Otherwise, value is equal to false. template struct is_scoped_enum : detail::is_scoped_enum_impl {}; @@ -223,7 +225,8 @@ template > } } -// Returns enum value at specified index. No bounds checking is performed: the behavior is undefined if index >= number of enum values. +// Returns enum value at specified index. +// No bounds checking is performed: the behavior is undefined if index >= number of enum values. template> [[nodiscard]] constexpr E enum_value(std::size_t index) { static_assert(std::is_enum_v, "magic_enum::enum_value requires enum type.");