Exists()

Array::Exists(ArrayPtr<T>, std::function<bool(T)>) method

Determines if the specified Array object contains an element that satisfies requirements of the specified predicate.

static bool System::Array<T>::Exists(ArrayPtr<T> arr, std::function<bool(T)> match)

Arguments

ParameterTypeDescription
arrArrayPtr<T>The array to look for the element in
matchstd::function<bool(T)>Function object that defines requirements and checks if an element satisfies them

Return Value

True if arr contains an element that satisfies requirements defined by match

See Also