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

Function equal

gecode/iter/ranges-operations.hpp:83–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82 template<class I, class J>
83 forceinline bool
84 equal(I& i, J& j) {
85 // Are i and j equal?
86 while (i() && j())
87 if ((i.min() == j.min()) && (i.max() == j.max())) {
88 ++i; ++j;
89 } else {
90 return false;
91 }
92 return !i() && !j();
93 }
94
95 template<class I, class J>
96 forceinline bool

Callers 6

compareMethod · 0.50
propagateMethod · 0.50
operator ==Method · 0.50
operator ==Method · 0.50
postMethod · 0.50
propagateMethod · 0.50

Calls 4

jFunction · 0.85
iFunction · 0.70
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected