xtd 0.2.0
enum_register.h
Go to the documentation of this file.
1 #pragma once
5 #include "enum_collection.h"
6 #include "types.h"
7 #define __XTD_CORE_INTERNAL__
8 #include "internal/__enum_introspection.h"
9 #include "internal/__enum_definition_to_enum_collection.h"
10 #undef __XTD_CORE_INTERNAL__
11 
13 namespace xtd {
35  template<typename enum_t>
36  struct enum_register {
53  explicit operator auto() const noexcept {return xtd::enum_collection<enum_t> {};}
54  };
55 }
Contains xtd fundamental types.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Contains xtd::enum_collection.
Provides the registration struct for enumerations.
Definition: enum_register.h:36