ΒΆtemplate <typename To, typename From>
inline decltype(auto) cast(const From& Val)
template <typename To, typename From>
inline decltype(auto) cast(const From& Val)
Description
cast <X > - Return the argument parameter cast to the specified type. This casting operator asserts that the type is correct, so it does not return null on failure. It does not allow a null argument (use cast_if_present for that). It is typically used like this: cast <Instruction >(myVal)->getParent()
Declared at: llvm/include/llvm/Support/Casting.h:565
Templates
- To
- From
Parameters
- const From& Val