MCPcopy Create free account
hub / github.com/pybind/pybind11 / add

Method add

tests/test_numpy_scalars.cpp:24–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22struct add {
23 T x;
24 explicit add(T x) : x(x) {}
25 T operator()(T y) const { return static_cast<T>(x + y); }
26};
27

Callers 6

runFunction · 0.45
PYBIND11_OVERRIDE_PUREFunction · 0.45
TEST_SUBMODULEFunction · 0.45
test_setFunction · 0.45
test_setFunction · 0.45
test.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected