#include <xtd/as>
#include <xtd/console>
#include <xtd/enum>
value_one,
value_two,
value_three,
value_four
);
auto main() -> int {
console::write_line("name = {}", enum_test::value_four);
console::write_line(
"value = {}",
enum_object(enum_test::value_four).to_int32());
console::write_line("as<int> = {}", as<int>(enum_test::value_four));
}
Provides the base class for enumerations.
Definition enum_object.hpp:42
#define enum_(namespace_name, enum_t,...)
Provides the registration struct for enum.
Definition enum.hpp:52
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10