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

Method operator()

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

Source from the content-addressed store, hash-verified

23 T x;
24 explicit add(T x) : x(x) {}
25 T operator()(T y) const { return static_cast<T>(x + y); }
26};
27
28template <typename T, typename F>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected