#include <userver/utils/flags.hpp>
Wrapper to extend enum with flags interface.
Public Types | |
using | ValueType = std::underlying_type_t<Enum> |
Public Member Functions | |
constexpr | Flags (Enum) noexcept |
constexpr | Flags (std::initializer_list< Enum >) noexcept |
constexpr | operator bool () const |
constexpr Flags & | operator|= (Flags) |
constexpr Flags & | operator&= (Flags) |
constexpr Flags & | Clear (Flags) |
constexpr Flags | operator| (Flags) const |
constexpr Flags | operator& (Flags) const |
constexpr bool | operator== (Flags) const |
constexpr bool | operator!= (Flags) const |
constexpr ValueType | GetValue () const |
constexpr void | SetValue (ValueType value) |
using utils::Flags< Enum >::ValueType = std::underlying_type_t<Enum> |
|
inlineconstexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexpr |
|
constexpr |
|
explicitconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
friend |