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

Method All

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

Source from the content-addressed store, hash-verified

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.

Callers 15

ShowSecondaryCMMethod · 0.80
OnRenameValidateMethod · 0.80
CanConnectWithMethod · 0.80
OnRenameValidateMethod · 0.80
OnRenameValidateMethod · 0.80
CanUseMethod · 0.80
BoxClass · 0.80
SetupStyleMethod · 0.80
IsTrackNameValidMethod · 0.80
RefreshMethod · 0.80

Calls 1

CountMethod · 0.45

Tested by

no test coverage detected