llvm::SetVector::count

Count the number of elements of a given key in the SetVector.

Synopsis

Declared in <llvm/ADT/SetVector.h>

[[nodiscard]]
size_type
count(const_arg_type key) const;

Return Value

0 if the element is not in the SetVector, 1 if it is.

NOTE

The return value should not be discarded.

Parameters

NameDescription
keyKey to look up.