MCPcopy Create free account
hub / github.com/Gecode/gecode / operator ==

Method operator ==

gecode/kernel/data/shared-array.hpp:279–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278 template<class T>
279 inline bool
280 SharedArray<T>::operator ==(const SharedArray<T>& sa) const {
281 if (size() != sa.size())
282 return false;
283 if (object()==sa.object())
284 return true;
285 for (int i=0; i<size(); i++) {
286 if ((*this)[i] != sa[i])
287 return false;
288 }
289 return true;
290 }
291
292 template<class T>
293 forceinline

Callers

nothing calls this directly

Calls 3

sizeFunction · 0.50
sizeMethod · 0.45
objectMethod · 0.45

Tested by

no test coverage detected