MCPcopy Create free account
hub / github.com/catboost/catboost / Sort

Method Sort

library/cpp/containers/ordered_map/ordered_map.h:222–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 7

ReserveFunction · 0.85
SortByFunction · 0.85
emplace_backFunction · 0.85
sizeFunction · 0.50
moveFunction · 0.50
clearFunction · 0.50
emplace_backMethod · 0.45

Tested by

no test coverage detected