Go to the source code of this file.
|
namespace | L4 |
| L4 low-level kernel interface.
|
|
namespace | L4::Types |
| L4 basic type helpers for C++.
|
|
◆ L4_TYPES_FLAGS_OPS_DEF
#define L4_TYPES_FLAGS_OPS_DEF |
( |
|
T | ) |
|
Value: friend constexpr T operator ~ (T f) \
{ \
} \
\
friend constexpr T operator | (T l, T r) \
{ \
} \
\
friend constexpr T operator & (T l, T r) \
{ \
}
Int_for_size< sizeof(T)>::type type
The resulting unsigned integer type with the size like T.
Helper macro to define a set of bitwise operators on an enum type.
This allows to use the enum type as bitmask type with '&', '|', and '~' operators that keep the enum type as result.
Definition at line 207 of file types.