LLVM 19.0.0git
Static Public Member Functions | List of all members
llvm::CastIsPossible< To, From, std::enable_if_t< std::is_base_of_v< To, From > > > Struct Template Reference

Upcasting (from derived to base) and casting from a type to itself should always be possible. More...

#include "llvm/Support/Casting.h"

Static Public Member Functions

static bool isPossible (const From &f)
 

Detailed Description

template<typename To, typename From>
struct llvm::CastIsPossible< To, From, std::enable_if_t< std::is_base_of_v< To, From > > >

Upcasting (from derived to base) and casting from a type to itself should always be possible.

Definition at line 278 of file Casting.h.

Member Function Documentation

◆ isPossible()

template<typename To , typename From >
static bool llvm::CastIsPossible< To, From, std::enable_if_t< std::is_base_of_v< To, From > > >::isPossible ( const From f)
inlinestatic

Definition at line 279 of file Casting.h.


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