struct CastIsPossible
Declaration
template <typename To, typename From, typename Enable = void>
struct CastIsPossible { /* full declaration omitted */ };
Description
This struct provides a way to check if a given cast is possible. It provides a static function called isPossible that is used to check if a cast can be performed. It should be overridden like this: template < > struct CastIsPossible <foo , bar> { static inline bool isPossible(const bar &b ) { return bar.isFoo(); } };
Declared at: llvm/include/llvm/Support/Casting.h:253
Templates
- To
- From
- Enable = void
Method Overview
- public static inline bool isPossible(const From & f)
Methods
ΒΆstatic inline bool isPossible(const From& f)
static inline bool isPossible(const From& f)
Declared at: llvm/include/llvm/Support/Casting.h:254
Parameters
- const From& f