MCPcopy Create free account
hub / github.com/Neargye/magic_enum / enum_integer

Function enum_integer

include/magic_enum/magic_enum.hpp:1255–1257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1253// Returns integer value from enum value.
1254template <typename E>
1255[[nodiscard]] constexpr auto enum_integer(E value) noexcept -> underlying_type_t<E> {
1256 return static_cast<underlying_type_t<E>>(value);
1257}
1258
1259// Returns underlying value from enum value.
1260template <typename E>

Callers 5

mainFunction · 0.85
mainFunction · 0.85
test_flags.cppFile · 0.85
test.cppFile · 0.85
test_nonascii.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected