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

Function to_integer

example/example.cpp:31–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template <typename E>
31auto to_integer(magic_enum::Enum<E> value) {
32 // magic_enum::Enum<E> - C++17 Concept for enum type.
33 return static_cast<magic_enum::underlying_type_t<E>>(value);
34}
35
36int main() {
37 // Enum variable to string name.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected