qxLib
Classes | Macros
flags.h File Reference
#include <qx/meta/concepts.h>
#include "qx/macros/copyable_movable.h"
#include "qx/meta/type_traits.h"
#include <qx/containers/flags.inl>

Go to the source code of this file.

Classes

class  qx::flags< enum_t >
 Wrapper for enumerations to be used as a list of flags. More...
 

Macros

#define QX_FLAGS_ENUM_CLASS(enumName)
 Define to let to use this enum class in different binary operations returning qx::flags. More...
 

Detailed Description

Author
Khrapov
Date
01.10.2023

Definition in file flags.h.

Macro Definition Documentation

◆ QX_FLAGS_ENUM_CLASS

#define QX_FLAGS_ENUM_CLASS (   enumName)
Value:
inline qx::flags<enumName> operator|(enumName left, enumName right) \
{ \
return qx::flags(left) | right; \
} \
inline qx::flags<enumName> operator&(enumName left, enumName right) \
{ \
return qx::flags(left) & right; \
} \
inline qx::flags<enumName> operator^(enumName left, enumName right) \
{ \
return qx::flags(left) ^ right; \
}
Wrapper for enumerations to be used as a list of flags.
Definition: flags.h:60

Define to let to use this enum class in different binary operations returning qx::flags.

Parameters
enumName- enum class name

Definition at line 20 of file flags.h.