|
FE 0.13.1
Header-only C++ frontend library
|
#include <cassert>#include <type_traits>Go to the source code of this file.
Classes | |
| struct | fe::is_bit_enum< T > |
Namespaces | |
| namespace | fe |
Concepts | |
| concept | fe::BitEnum |
Functions | |
| template<fe::BitEnum E> | |
| constexpr E | operator| (E a, E b) noexcept |
| template<fe::BitEnum E> | |
| constexpr E | operator& (E a, E b) noexcept |
| template<fe::BitEnum E> | |
| constexpr E | operator^ (E a, E b) noexcept |
| template<fe::BitEnum E> | |
| constexpr E | operator~ (E a) noexcept |
| template<fe::BitEnum E> | |
| constexpr E & | operator|= (E &a, E b) noexcept |
| template<fe::BitEnum E> | |
| constexpr E & | operator&= (E &a, E b) noexcept |
| template<fe::BitEnum E> | |
| constexpr E & | operator^= (E &a, E b) noexcept |
| template<fe::BitEnum E> | |
| constexpr bool | fe::has_flag (E value, E flag) noexcept |
Bit operations for enum classs | |
Provides all kind of bit and comparison operators for an enum class Use like this: | |
| template<fe::BitEnum E> | |
| constexpr auto | fe::to_underlying (E e) noexcept |
|
constexprnoexcept |
Definition at line 36 of file enum.h.
References operator&(), and fe::to_underlying().
Referenced by operator&().
|
constexprnoexcept |
|
constexprnoexcept |
Definition at line 37 of file enum.h.
References operator^(), and fe::to_underlying().
Referenced by operator^().
|
constexprnoexcept |
|
constexprnoexcept |
Definition at line 35 of file enum.h.
References operator|(), and fe::to_underlying().
Referenced by operator|().
|
constexprnoexcept |
|
constexprnoexcept |