MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / lexicographical_sort

Function lexicographical_sort

include/fplus/container_common.hpp:2173–2177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2171template <typename Container,
2172 typename ContainerOut = internal::remove_const_and_ref_t<Container>>
2173ContainerOut lexicographical_sort(Container&& xs)
2174{
2175 typedef typename std::remove_reference<Container>::type::value_type T;
2176 return sort_by(lexicographical_less<T>, std::forward<Container>(xs));
2177}
2178
2179// API search type: replicate : (Int, a) -> [a]
2180// fwd bind count: 1

Callers 1

compare_test.cppFile · 0.50

Calls 1

sort_byFunction · 0.70

Tested by

no test coverage detected