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

Function insert

kdevplatform/util/algorithm.h:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 */
70template<typename ElementType, typename ValueType>
71InsertionResult<typename QSet<ElementType>::iterator> insert(QSet<ElementType>& set, ValueType&& value)
72{
73 const auto oldSize = set.size();
74 auto it = set.insert(std::forward<ValueType>(value));
75 Q_ASSERT(set.size() >= oldSize);
76 Q_ASSERT(set.size() <= oldSize + 1);
77 return {std::move(it), set.size() != oldSize};
78}
79}
80
81#endif // KDEVPLATFORM_ALGORITHM_H

Callers 15

BenchItemRepositoryClass · 0.85
getImportsFromDUMethod · 0.85
projectOpenedMethod · 0.85
featuresMatchMethod · 0.85
dumpMethod · 0.85
loadChainMethod · 0.85
addContextsForRemovalMethod · 0.85
FOREACH_FUNCTIONMethod · 0.85
importsMethod · 0.85
ContextUsesWidgetMethod · 0.85

Calls 2

sizeMethod · 0.45
insertMethod · 0.45

Tested by 1

verifyInsertFunction · 0.68