| 119 | /// <returns>True if all elements in the collection matches the prediction, otherwise false.</returns> |
| 120 | template<typename T, typename AllocationType> |
| 121 | static int32 All(const Array<T, AllocationType>& obj, const Function<bool(const T&)>& predicate) |
| 122 | { |
| 123 | for (int32 i = 0; i < obj.Count(); i++) |
| 124 | { |
| 125 | if (!predicate(obj[i])) |
| 126 | return false; |
| 127 | } |
| 128 | return true; |
| 129 | } |
| 130 | |
| 131 | /// <summary> |
| 132 | /// All Any operator returns true if all elements match the predicate. It does not select the element, but returns true if all elements are matching. |
no test coverage detected