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

Method operator==

tests/test_operator_overloading.cpp:90–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 friend Vector2 operator/(float f, const Vector2 &v) { return Vector2(f / v.x, f / v.y); }
89
90 bool operator==(const Vector2 &v) const { return x == v.x && y == v.y; }
91 bool operator!=(const Vector2 &v) const { return x != v.x || y != v.y; }
92
93private:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected