MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / stableSorted

Function stableSorted

source/core/StarAlgorithm.hpp:205–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203
204template <typename Container, typename Compare>
205Container stableSorted(Container const& c, Compare comp) {
206 auto c2 = c;
207 sort(c2, comp);
208 return c2;
209}
210
211template <typename Container>
212Container sorted(Container const& c) {

Callers

nothing calls this directly

Calls 1

sortFunction · 0.70

Tested by

no test coverage detected