idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::flag_enum Concept Reference

Concept for enums that have opted into flag operators. More...

#include <idfxx_core/include/idfxx/flags.hpp>

Concept definition

template<typename E>
concept idfxx::flag_enum = std::is_enum_v<E> && enable_flags_operators<E>
Concept for enums that have opted into flag operators.
Definition flags.hpp:67

Detailed Description

Concept for enums that have opted into flag operators.

An enum satisfies this concept if it's a scoped enum and enable_flags_operators<E> is specialized to true.

Template Parameters
EThe type to check.

Definition at line 67 of file flags.hpp.