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

Function enum_underlying

include/magic_enum/magic_enum.hpp:1261–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259// Returns underlying value from enum value.
1260template <typename E>
1261[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> underlying_type_t<E> {
1262 return static_cast<underlying_type_t<E>>(value);
1263}
1264
1265// Returns index in enum values from enum value.
1266// Returns optional with index.

Callers 2

bitsetMethod · 0.85
setMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected