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

Function duplicates

gecode/kernel/data/array.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace Gecode { namespace Kernel {
37
38 bool
39 duplicates(void** p, int n) {
40 assert(n > 1);
41 Support::quicksort<void*>(p,n);
42 for (int i=1; i<n; i++)
43 if (p[i-1] == p[i])
44 return true;
45 return false;
46 }
47
48 bool
49 duplicates(void** p, int n, void** q, int m) {

Callers 2

sharedFunction · 0.85
sameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected