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

Function operator+

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

Source from the content-addressed store, hash-verified

98class C2 {};
99
100int operator+(const C1 &, const C1 &) { return 11; }
101int operator+(const C2 &, const C2 &) { return 22; }
102int operator+(const C2 &, const C1 &) { return 21; }
103int operator+(const C1 &, const C2 &) { return 12; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected