We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now we have
std::optional<E> enum_cast(std::string_view value) noexcept
std::optional<E> enum_cast(std::underlying_type_t<E> value) noexcept
Is it necessary to add the following functions? Will it be useful to someone?
std::optional<E> enum_from_string_nothrow(std::string_view value) noexcept
std::optional<E> enum_from_string_nocase_nothrow(std::string_view value) noexcept
E enum_from_string(std::string_view value)
E enum_from_string_nocase(std::string_view value)
std::optional<E> enum_from_integral_nothrow(std::underlying_type_t<E> value) noexcept
E enum_from_integral(std::underlying_type_t<E> value)
E enum_from_integral_unchecked(std::underlying_type_t<E> value)
The text was updated successfully, but these errors were encountered:
Is std::optional<E> enum_from_string_nothrow(std::string_view value) noexcept different from: std::optional<E> enum_cast(std::string_view value) noexcept ?
Sorry, something went wrong.
No. std::optional<E> enum_cast(std::string_view value) noexcept == std::optional<E> enum_from_string_nothrow(std::string_view value) noexcept std::optional<E> enum_cast(std::underlying_type_t<E> value) noexcept == std::optional<E> enum_from_integral_nothrow(std::underlying_type_t<E> value) noexcept
No branches or pull requests
Now we have
std::optional<E> enum_cast(std::string_view value) noexcept
std::optional<E> enum_cast(std::underlying_type_t<E> value) noexcept
Is it necessary to add the following functions? Will it be useful to someone?
std::optional<E> enum_from_string_nothrow(std::string_view value) noexcept
std::optional<E> enum_from_string_nocase_nothrow(std::string_view value) noexcept
E enum_from_string(std::string_view value)
E enum_from_string_nocase(std::string_view value)
std::optional<E> enum_from_integral_nothrow(std::underlying_type_t<E> value) noexcept
E enum_from_integral(std::underlying_type_t<E> value)
E enum_from_integral_unchecked(std::underlying_type_t<E> value)
See https://github.com/Neargye/magic_enum/tree/from_functions
The text was updated successfully, but these errors were encountered: