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

Method stdSet

kdevplatform/language/util/setrepository.cpp:426–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424};
425
426std::set<Index> Set::stdSet() const
427{
428 Set::Iterator it = iterator();
429 std::set<Index> ret;
430
431 while (it) {
432 Q_ASSERT(ret.find(*it) == ret.end());
433 ret.insert(*it);
434 ++it;
435 }
436
437 return ret;
438}
439
440Set::Iterator::Iterator(const Iterator& rhs)
441 : d_ptr(new Set::IteratorPrivate(*rhs.d_ptr))

Callers 2

testStringSetsMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by 1

testStringSetsMethod · 0.64