MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / operator==

Method operator==

include/reactphysics3d/containers/Array.h:450–461  ·  view source on GitHub ↗

Overloaded equality operator

Source from the content-addressed store, hash-verified

448
449 /// Overloaded equality operator
450 bool operator==(const Array<T>& array) const {
451
452 if (mSize != array.mSize) return false;
453
454 for (uint64 i=0; i < mSize; i++) {
455 if (mBuffer[i] != array[i]) {
456 return false;
457 }
458 }
459
460 return true;
461 }
462
463 /// Overloaded not equal operator
464 bool operator!=(const Array<T>& array) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected