llvm::IsaAndPresentPred

Function object that applies isa_and_present<Types...> in algorithms.

Synopsis

Declared in <llvm/Support/Casting.h>

template<typename... Types>
inline constexpr /* implementation-defined */ IsaAndPresentPred = {};

Description

The function call operator returns true when the value can be cast to any type in Types, or if the value is not present (e.g., nullptr). Example: ` SmallVector<Type> myTypes = ...; if (llvm::all_of(myTypes, llvm::IsaAndPresentPred<VectorType>)) ... `