| 784 | |
| 785 | template <class S> |
| 786 | inline TVector<S> ToList() { |
| 787 | TVector<S> result; |
| 788 | for (auto&& it : *this) { |
| 789 | result.push_back(S(it.Token())); |
| 790 | } |
| 791 | return result; |
| 792 | } |
| 793 | |
| 794 | template <class Container> |
| 795 | inline void Collect(Container* c) { |