LLVM 22.0.0git
llvm::bitfields_details::ResolveUnderlyingType< T, bool > Struct Template Reference

Bitfield deals with the following type: More...

#include "llvm/ADT/Bitfields.h"

Inheritance diagram for llvm::bitfields_details::ResolveUnderlyingType< T, bool >:
[legend]

Public Types

using type = std::underlying_type_t<T>

Detailed Description

template<typename T, bool = std::is_enum<T>::value>
struct llvm::bitfields_details::ResolveUnderlyingType< T, bool >

Bitfield deals with the following type:

  • unsigned enums
  • signed and unsigned integer
  • bool Internally though we only manipulate integer with well defined and consistent semantics, this excludes typed enums and bool that are replaced with their unsigned counterparts. The correct type is restored in the public API.

Definition at line 197 of file Bitfields.h.

Member Typedef Documentation

◆ type

template<typename T, bool = std::is_enum<T>::value>
using llvm::bitfields_details::ResolveUnderlyingType< T, bool >::type = std::underlying_type_t<T>

Definition at line 198 of file Bitfields.h.


The documentation for this struct was generated from the following file: