System::Array::Exists method

Array::Exists 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)
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

ReturnValue

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

See Also