LLVM 23.0.0git
llvm::PointerLikeTypeTraits< PointerUnion< PTs... > > Struct Template Reference

#include "llvm/ADT/PointerUnion.h"

Inheritance diagram for llvm::PointerLikeTypeTraits< PointerUnion< PTs... > >:
[legend]

Static Public Member Functions

static void * getAsVoidPointer (const PointerUnion< PTs... > &P)
static PointerUnion< PTs... > getFromVoidPointer (void *P)

Static Public Attributes

static constexpr int NumLowBitsAvailable

Detailed Description

template<typename ... PTs>
struct llvm::PointerLikeTypeTraits< PointerUnion< PTs... > >

Definition at line 244 of file PointerUnion.h.

Member Function Documentation

◆ getAsVoidPointer()

template<typename ... PTs>
void * llvm::PointerLikeTypeTraits< PointerUnion< PTs... > >::getAsVoidPointer ( const PointerUnion< PTs... > & P)
inlinestatic

Definition at line 245 of file PointerUnion.h.

References P.

◆ getFromVoidPointer()

template<typename ... PTs>
PointerUnion< PTs... > llvm::PointerLikeTypeTraits< PointerUnion< PTs... > >::getFromVoidPointer ( void * P)
inlinestatic

Definition at line 249 of file PointerUnion.h.

References llvm::PointerUnion< PTs >::getFromOpaqueValue(), and P.

Member Data Documentation

◆ NumLowBitsAvailable

template<typename ... PTs>
int llvm::PointerLikeTypeTraits< PointerUnion< PTs... > >::NumLowBitsAvailable
staticconstexpr
Initial value:
A discriminated union of two or more pointer types, with the discriminator in the low bit of the poin...
A traits type that is used to handle pointer types and things that are just wrappers for pointers as ...

Definition at line 255 of file PointerUnion.h.


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