ΒΆtemplate <typename EnumTy1,
          typename EnumTy2,
          typename UT1 = std::enable_if_t<
              std::is_enum<EnumTy1>::value,
              std::underlying_type_t<EnumTy1>>,
          typename UT2 = std::enable_if_t<
              std::is_enum<EnumTy2>::value,
              std::underlying_type_t<EnumTy2>>>
constexpr auto addEnumValues(EnumTy1 LHS,
                             EnumTy2 RHS)

Description

Helper which adds two underlying types of enumeration type. Implicit conversion to a common type is accepted.

Declared at: llvm/include/llvm/ADT/STLExtras.h:216

Templates

EnumTy1
EnumTy2
UT1 = std::enable_if_t<std::is_enum<EnumTy1>::value, std::underlying_type_t<EnumTy1>>
UT2 = std::enable_if_t<std::is_enum<EnumTy2>::value, std::underlying_type_t<EnumTy2>>

Parameters

EnumTy1 LHS
EnumTy2 RHS