Template Struct Flags¶
Defined in File flags.h
Struct Documentation¶
-
template<typename Enum>
struct Flags¶ Treat an enumeration, scoped and unscoped, like a set of flags.
For scoped enumerations, there are optional bitwise operators available that can be enabled by declaring a function within the namespace of the enumeration (here Enum):
Enum mir_enable_enum_bit_operators(Enum);
Public Functions
- inline explicit constexpr constexpr Flags (value_type flag_value=0) noexcept
- inline constexpr constexpr Flags (Enum flag_value) noexcept
-
inline constexpr value_type value() const noexcept¶