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

Method toVector

kdevplatform/util/kdevvarlengtharray.h:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60template<class T, int Prealloc>
61Q_OUTOFLINE_TEMPLATE QVector<T> KDevVarLengthArray<T, Prealloc>::toVector() const
62{
63 QVector<T> ret;
64 ret.reserve(Base::size());
65 const T* const end = Base::constEnd();
66 for (const T* it = Base::constBegin(); it != end; ++it) {
67 ret << *it;
68 }
69
70 return ret;
71}
72
73#endif // KDEVPLATFORM_KDEVVARLENGTHARRAY_H

Callers 3

mixedMethod · 0.80

Calls 2

sizeFunction · 0.50
reserveMethod · 0.45

Tested by 1

mixedMethod · 0.64