template<typename enum_t>
struct xtd::enum_set_attribute< enum_t >
Provides the set attribute struct for enumerations.
template<typename enum_t>
Provides the set attribute struct for enumerations.
Definition enum_set_attribute.h:31
- Header
#include <xtd/enum_set_attribute>
- Namespace
- xtd
- Library
- xtd.core
- Examples
- The following code show how to use xtd::enum_set_attribute operator.
- Examples
- enum_class_flags_without_helpers.cpp, and format_enum_class_flags_without_helper.cpp.
◆ operator auto()
template<typename enum_t >
Allows to set attribute to an enumeration that can be used by xtd::enum_object.
- Returns
- One of xtd::enum_attribute values.
- Examples
- The following code show how to set attribute to the value_flags enum class.
enum class value_flags {
value_none = 0,
value_one = 0b1,
value_two = 0b10,
value_three = 0b100,
};
template<>
};
@ flags
Enum flags attribute.
The documentation for this struct was generated from the following file: