diff --git a/README.md b/README.md index 763f14d..317c3f5 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ Header-only C++17 library provides static reflection for enums, work with any en * `enum_count` returns number of enum values. * `enum_name` obtains string name from enum value. * `enum_names` obtains string enum name sequence. -* `is_unscoped_enum` checks whether type is an Unscoped enumeration. -* `is_scoped_enum` checks whether type is an Scoped enumeration. +* `is_unscoped_enum` checks whether type is an [Unscoped enumeration](https://en.cppreference.com/w/cpp/language/enum#Unscoped_enumeration). +* `is_scoped_enum` checks whether type is an [Scoped enumeration](https://en.cppreference.com/w/cpp/language/enum#Scoped_enumerations). ## Features @@ -139,7 +139,7 @@ enum Color { RED = 2, BLUE = 4, GREEN = 8 }; std::cout << color << std::endl; // "BLUE" ``` -* Checks whether type is an Unscoped enumeration. +* Checks whether type is an [Unscoped enumeration](https://en.cppreference.com/w/cpp/language/enum#Unscoped_enumeration). ```cpp enum color { red, green, blue }; enum class direction { left, right }; @@ -152,7 +152,7 @@ enum Color { RED = 2, BLUE = 4, GREEN = 8 }; magic_enum::is_unscoped_enum_v -> true ``` -* Checks whether type is an Scoped enumeration. +* Checks whether type is an [Scoped enumeration](https://en.cppreference.com/w/cpp/language/enum#Scoped_enumerations). ```cpp enum color { red, green, blue }; enum class direction { left, right }; diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index a89502b..0bebf5a 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -197,16 +197,14 @@ 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 type. Otherwise, value is equal to false. -// https://en.cppreference.com/w/cpp/language/enum#Scoped_enumerations +// 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 {};