| 555 | } |
| 556 | |
| 557 | static inline void Load(IInputStream* rh, TSetType& s) { |
| 558 | const size_t cnt = ::LoadSize(rh); |
| 559 | TSetSerializerInserter<TSetType, TValue, sorted> ins(s, cnt); |
| 560 | |
| 561 | TValue v; |
| 562 | for (size_t i = 0; i != cnt; ++i) { |
| 563 | ::Load(rh, v); |
| 564 | ins.Insert(v); |
| 565 | } |
| 566 | } |
| 567 | |
| 568 | template <class TStorage> |
| 569 | static inline void Load(IInputStream* rh, TSetType& s, TStorage& pool) { |