A tagged pointer‐like type bound to a discriminant within a sum type.

Synopsis

Declared in <llvm/ADT/PointerSumType.h>

template<
    uintptr_t N,
    typename PointerArgT,
    typename TraitsArgT = PointerLikeTypeTraits<PointerArgT>>
struct PointerSumTypeMember;

Description

A compile time pair of an integer tag and the pointer‐like type which it indexes within a sum type. Also allows the user to specify a particular traits class for pointer types with custom behavior such as over‐aligned allocation.

Type Aliases

Name

Description

PointerT

Pointer‐like type stored for this sum‐type member.

TraitsT

Pointer‐like traits used to pack/unpack this member.

Enums

Name

Description

MemberTag

Discriminant tag values for this sum‐type member.

Created with MrDocs