Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
struct 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
run
Function · 0.45
PYBIND11_OVERRIDE_PURE
Function · 0.45
TEST_SUBMODULE
Function · 0.45
test_set
Function · 0.45
test_set
Function · 0.45
test.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected