|
libDAI
|
Defines the DAI_ENUM macro, which can be used to define an enum with additional functionality.
More...
Go to the source code of this file.
Defines | |
| #define | DAI_ENUM(x, val0,...) |
Extends the C++ enum type by supporting input/output streaming and conversion to and from const char* and size_t. | |
Defines the DAI_ENUM macro, which can be used to define an enum with additional functionality.
| #define DAI_ENUM | ( | x, | |
| val0, | |||
| ... | |||
| ) |
Extends the C++ enum type by supporting input/output streaming and conversion to and from const char* and size_t.
For more details see the source code.
DAI_ENUM(colors,RED,GREEN,BLUE)
enum {RED, GREEN, BLUE};
enum keyword.
1.7.4