header_utils
Loading...
Searching...
No Matches
Enum Flags

Contains enum_flags, a value struct that represents a set of bits mapped to an enum (implemented as a bitset). More...

Classes

struct  ghassanpl::enum_flags< ENUM, VALUE_TYPE >
 A (constexpr) value struct that represents a set of bits mapped to an enum (implemented as a bitset). More...
struct  ghassanpl::enum_flag_changes< ENUM, VALUE_TYPE >
 Holds a set of changes to be made to an enum_flags<ENUM, VALUE_TYPE> - conceptually holds a set of std::pair<ENUM, enum_flag_change>. More...

Enumerations

enum class  ghassanpl::enum_flag_change : uint8_t { no_change , set , unset , toggle }
 A change to be done to an enum flag in an enum_flags set. More...

Detailed Description

Contains enum_flags, a value struct that represents a set of bits mapped to an enum (implemented as a bitset).

There also exists a C++98-only and C++17-only version of this module. See the <ghassanpl/cpp17/enum_flags.h> and <ghassanpl/cpp98/enum_flags.h> files.

Enumeration Type Documentation

◆ enum_flag_change

enum class ghassanpl::enum_flag_change : uint8_t
strong

A change to be done to an enum flag in an enum_flags set.

Definition at line 384 of file enum_flags.h.