MCPcopy Create free account
hub / github.com/SOUI2/soui / RemoveElementFromArray

Function RemoveElementFromArray

SOUI/include/core/SMsgLoop.h:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8{
9 template<class T>
10 BOOL RemoveElementFromArray(SArray<T> &arr, T ele)
11 {
12 for(size_t i=0;i<arr.GetCount();i++)
13 {
14 if(arr[i] == ele)
15 {
16 arr.RemoveAt(i);
17 return TRUE;
18 }
19 }
20 return FALSE;
21 }
22
23 struct IMessageFilter
24 {

Callers 2

RemoveIdleHandlerMethod · 0.85
RemoveMessageFilterMethod · 0.85

Calls 2

RemoveAtMethod · 0.80
GetCountMethod · 0.45

Tested by

no test coverage detected