MCPcopy Create free account
hub / github.com/Gecode/gecode / exchange

Function exchange

gecode/support/sort.hpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 /// Exchange elements according to order
40 template<class Type, class Less>
41 forceinline void
42 exchange(Type &a, Type &b, Less &less) {
43 if (less(b,a)) std::swap(a,b);
44 }
45
46 /// Perform quicksort only for more elements
47 int const QuickSortCutoff = 20;

Callers 2

insertionFunction · 0.85
quicksortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected