MCPcopy Create free account
hub / github.com/Snapchat/Valdi / operator==

Method operator==

valdi_core/src/valdi_core/cpp/Utils/ValueArray.cpp:63–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool ValueArray::operator==(const ValueArray& other) const {
64 if (&other == this) {
65 return true;
66 }
67
68 if (size() != other.size()) {
69 return false;
70 }
71
72 const auto* it = begin();
73 const auto* otherIt = other.begin();
74
75 while (it != end()) {
76 if (*it != *otherIt) {
77 return false;
78 }
79 ++it;
80 ++otherIt;
81 }
82
83 return true;
84}
85
86bool ValueArray::empty() const {
87 return _size == 0;

Callers

nothing calls this directly

Calls 5

beginFunction · 0.85
sizeFunction · 0.50
endFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected