Enumerations | Functions
example_custom_name.cpp File Reference
#include <iostream>
#include <magic_enum/magic_enum.hpp>
Include dependency graph for example_custom_name.cpp:

Go to the source code of this file.

Enumerations

enum  Color : int {
  Color::RED = -10, Color::BLUE = 0, Color::GREEN = 10, Color::RED = 1,
  Color::GREEN = 2, Color::BLUE = 4, Color::RED = 1, Color::GREEN = 2,
  Color::BLUE = 4, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4,
  Color::RED = -10, Color::BLUE = 0, Color::GREEN = 10, Color::RED,
  Color::BLUE, Color::GREEN, Color::RED = -12, Color::GREEN = 7,
  Color::BLUE = 15, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4,
  Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4, Color::RED = 1,
  Color::GREEN = 2, Color::BLUE = 4, Color::RED = -12, Color::GREEN = 7,
  Color::BLUE = 15
}
 
enum  Numbers : int {
  Numbers::One, Numbers::Two, Numbers::Three, Numbers::one = 1,
  Numbers::two, Numbers::three, Numbers::many = 127, Numbers::none = 0,
  Numbers::one = 1 << 1, Numbers::two = 1 << 2, Numbers::three = 1 << 3, Numbers::many = 1 << 30
}
 

Functions

int main ()
 

Enumeration Type Documentation

◆ Color

enum Color : int
strong
Enumerator
RED 
BLUE 
GREEN 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
BLUE 
GREEN 
RED 
BLUE 
GREEN 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 

Definition at line 27 of file example_custom_name.cpp.

◆ Numbers

enum Numbers : int
strong
Enumerator
One 
Two 
Three 
one 
two 
three 
many 
none 
one 
two 
three 
many 

Definition at line 44 of file example_custom_name.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 58 of file example_custom_name.cpp.



magic_enum
Author(s):
autogenerated on Fri Feb 21 2025 03:20:19