struct CastInfoPointerUnionImpl

Declaration

template <typename... PTs>
struct CastInfoPointerUnionImpl { /* full declaration omitted */ };

Description

We can't (at least, at this moment with C++14) declare CastInfo as a friend of PointerUnion like this: ``` template <typename To> friend struct CastInfo <To , PointerUnion <PTs ...>>; ``` The compiler complains 'Partial specialization cannot be declared as a friend'. So we define this struct to be a bridge between CastInfo and PointerUnion.

Declared at: llvm/include/llvm/ADT/PointerUnion.h:226

Templates

PTs

Method Overview

  • public template <typename To>static To doCast(llvm::CastInfoPointerUnionImpl::From & F)
  • public template <typename To>static inline bool isPossible(llvm::CastInfoPointerUnionImpl::From & F)

Methods

template <typename To>
static To doCast(
    llvm::CastInfoPointerUnionImpl::From& F)

Declared at: llvm/include/llvm/ADT/PointerUnion.h:233

Templates

To

Parameters

llvm::CastInfoPointerUnionImpl::From& F

template <typename To>
static inline bool isPossible(
    llvm::CastInfoPointerUnionImpl::From& F)

Declared at: llvm/include/llvm/ADT/PointerUnion.h:229

Templates

To

Parameters

llvm::CastInfoPointerUnionImpl::From& F