LLVM 20.0.0git
Static Public Member Functions | List of all members
llvm::DefaultDoCastIfPossible< To, From, Derived > Struct Template Reference

This cast trait just provides the default implementation of doCastIfPossible to make CastInfo specializations more declarative. More...

#include "llvm/Support/Casting.h"

Inheritance diagram for llvm::DefaultDoCastIfPossible< To, From, Derived >:
Inheritance graph
[legend]

Static Public Member Functions

static To doCastIfPossible (From f)
 

Detailed Description

template<typename To, typename From, typename Derived>
struct llvm::DefaultDoCastIfPossible< To, From, Derived >

This cast trait just provides the default implementation of doCastIfPossible to make CastInfo specializations more declarative.

The Derived template parameter must be provided for forwarding castFailed and doCast.

Definition at line 309 of file Casting.h.

Member Function Documentation

◆ doCastIfPossible()

template<typename To , typename From , typename Derived >
static To llvm::DefaultDoCastIfPossible< To, From, Derived >::doCastIfPossible ( From  f)
inlinestatic

Definition at line 310 of file Casting.h.


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