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

Method operator==

tests/object.h:169–169  ·  view source on GitHub ↗

Compare this reference with another reference

Source from the content-addressed store, hash-verified

167
168 /// Compare this reference with another reference
169 bool operator==(const ref &r) const { return m_ptr == r.m_ptr; }
170
171 /// Compare this reference with another reference
172 bool operator!=(const ref &r) const { return m_ptr != r.m_ptr; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected