| 424 | }; |
| 425 | |
| 426 | std::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 | |
| 440 | Set::Iterator::Iterator(const Iterator& rhs) |
| 441 | : d_ptr(new Set::IteratorPrivate(*rhs.d_ptr)) |