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

Function sorted

source/core/StarAlgorithm.hpp:198–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197template <typename Container, typename Compare>
198Container sorted(Container const& c, Compare comp) {
199 auto c2 = c;
200 sort(c2, comp);
201 return c2;
202}
203
204template <typename Container, typename Compare>
205Container stableSorted(Container const& c, Compare comp) {

Callers 1

setupNetStatesMethod · 0.85

Calls 1

sortFunction · 0.70

Tested by

no test coverage detected