ΒΆtemplate <class X, class Y>
auto dyn_cast_if_present(const Y& Val)

Description

dyn_cast_if_present <X > - Functionally identical to dyn_cast, except that a null (or none in the case of optionals) value is accepted.

Declared at: llvm/include/llvm/Support/Casting.h:733

Templates

X
Y

Parameters

const Y& Val