struct DefaultDoCastIfPossible
Declaration
template <typename To, typename From, typename Derived>
struct DefaultDoCastIfPossible { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/Support/Casting.h:310
Templates
- To
- From
- Derived
Method Overview
- public static To doCastIfPossible(From f)
Methods
ΒΆstatic To doCastIfPossible(From f)
static To doCastIfPossible(From f)
Declared at: llvm/include/llvm/Support/Casting.h:311
Parameters
- From f