MCPcopy Create free account
hub / github.com/pybind/pybind11 / operator==

Method operator==

tests/test_sequences_and_iterators.cpp:226–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 }
225
226 bool operator==(const Sequence &s) const {
227 if (m_size != s.size()) {
228 return false;
229 }
230 for (size_t i = 0; i < m_size; ++i) {
231 if (m_data[i] != s[i]) {
232 return false;
233 }
234 }
235 return true;
236 }
237 bool operator!=(const Sequence &s) const { return !operator==(s); }
238
239 float operator[](size_t index) const { return m_data[index]; }

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected