enum_flags.h File Reference
#include "rttr/detail/base/core_prerequisites.h"
#include "rttr/detail/misc/std_type_traits.h"
#include <type_traits>
#include <cstdint>
#include "rttr/detail/impl/enum_flags_impl.h"

Go to the source code of this file.

Classes

class  rttr::enum_flags< Enum >
 The enum_flags class template is used to store OR-combinations of enum values in a type-safe way. More...
 

Namespaces

namespace  rttr
 

Macros

#define RTTR_DECLARE_ENUM_FLAGS_OPERATORS(Flags)
 This macro declares the a global operator | for enums of type enum_flags<T>
 
#define RTTR_DECLARE_FLAGS(Flags, Enum)
 This macro expands to:
 

Macro Definition Documentation

◆ RTTR_DECLARE_ENUM_FLAGS_OPERATORS

#define RTTR_DECLARE_ENUM_FLAGS_OPERATORS ( Flags)

This macro declares the a global operator | for enums of type enum_flags<T>

See also
RTTR_DECLARE_FLAGS()

◆ RTTR_DECLARE_FLAGS

#define RTTR_DECLARE_FLAGS ( Flags,
Enum )

This macro expands to:

using Flags = rttr::enum_flags<Enum>;
The array_range class provides a view into an underlying data structure with lower and upper limits.
Definition array_range.h:64

Flags is the name of the alias for rttr::enum_flags<Enum>.

Enum is the name of the existing enum.