MCPcopy Create free account
hub / github.com/KDE/kdevelop / removeOne

Method removeOne

kdevplatform/util/kdevvarlengtharray.h:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36template<class T, int Prealloc>
37Q_INLINE_TEMPLATE bool KDevVarLengthArray<T, Prealloc>::removeOne(const T& value)
38{
39 const int idx = Base::indexOf(value);
40 if (idx == -1) {
41 return false;
42 }
43 Base::remove(idx);
44 return true;
45}
46
47template<class T, int Prealloc>
48Q_OUTOFLINE_TEMPLATE QList<T> KDevVarLengthArray<T, Prealloc>::toList() const

Callers 15

viewCreatedMethod · 0.80
saveSessionConfigMethod · 0.80
justUncheckedMethod · 0.80
aboutToDestroyMethod · 0.80
jobFinishedMethod · 0.80
~DUContextMethod · 0.80
removeTypeMethod · 0.80
removeLocationMethod · 0.80

Calls 1

indexOfFunction · 0.85

Tested by 2

mixedMethod · 0.64