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

Method operator==

include/reactphysics3d/containers/Set.h:568–579  ·  view source on GitHub ↗

Overloaded equality operator

Source from the content-addressed store, hash-verified

566
567 /// Overloaded equality operator
568 bool operator==(const Set<V>& set) const {
569
570 if (size() != set.size()) return false;
571
572 for (auto it = begin(); it != end(); ++it) {
573 if(!set.contains(*it)) {
574 return false;
575 }
576 }
577
578 return true;
579 }
580
581 /// Overloaded not equal operator
582 bool operator!=(const Set<V>& set) const {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected