MCPcopy Create free account
hub / github.com/Tracktion/tracktion_engine / enum_underlying

Function enum_underlying

modules/3rd_party/magic_enum/magic_enum.hpp:1189–1191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1187// Returns underlying value from enum value.
1188template <typename E>
1189[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> detail::enable_if_t<E, underlying_type_t<E>> {
1190 return static_cast<underlying_type_t<E>>(value);
1191}
1192
1193// Obtains index in enum values from enum value.
1194// Returns optional with index.

Callers 2

bitsetMethod · 0.85
setMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected