| 220 | } |
| 221 | |
| 222 | void Sort() { |
| 223 | TVector<typename Traits::TMutableItem> tmp(Reserve(size())); |
| 224 | for(auto& x : *this) { |
| 225 | tmp.emplace_back(std::move(x)); |
| 226 | } |
| 227 | clear(); |
| 228 | SortBy(tmp, Traits::GetSortProjector); |
| 229 | for (auto&& x : std::move(tmp)) { |
| 230 | emplace_back(std::move(x)); |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | template <class TheKey> |
| 235 | const typename Traits::TValue* FindPtr(const TheKey& key) const { |
nothing calls this directly
no test coverage detected