LLVM 22.0.0git
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"

Inheritance diagram for llvm::CastIsPossible< To, From, std::enable_if_t< std::is_base_of_v< To, From > > >:
[legend]

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>
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: