MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Any

Method Any

Source/Engine/Core/Collections/ArrayExtensions.h:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 /// <returns>True if any element in the collection matches the prediction, otherwise false.</returns>
103 template<typename T, typename AllocationType>
104 static bool Any(const Array<T, AllocationType>& obj, const Function<bool(const T&)>& predicate)
105 {
106 for (int32 i = 0; i < obj.Count(); i++)
107 {
108 if (predicate(obj[i]))
109 return true;
110 }
111 return false;
112 }
113
114 /// <summary>
115 /// 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.

Callers 15

MarshalHelperMethod · 0.80
GetMethodGCHandleMethod · 0.80
GetAssemblyTypesMethod · 0.80
MakeNewCustomDelegateMethod · 0.80
SetupMethod · 0.80
CreatePropertiesMethod · 0.80
UpdateAutoSaveMethod · 0.80
UnloadSceneMethod · 0.80
GetMethod · 0.80
ShowSecondaryCMMethod · 0.80
HasAttributeMethod · 0.80
DeleteMethod · 0.80

Calls 1

CountMethod · 0.45

Tested by

no test coverage detected