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

Method Add

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

Source from the content-addressed store, hash-verified

23 using Abase::Abase;
24
25 int Add(int other_val) const override {
26 PYBIND11_OVERRIDE_PURE(int, /* Return type */
27 Abase, /* Parent class */
28 Add, /* Name of function in C++ (must match Python name) */
29 other_val);
30 }
31};
32
33int AddInCppRawPtr(const Abase *obj, int other_val) { return obj->Add(other_val) * 10 + 7; }

Callers 3

AddInCppRawPtrFunction · 0.45
AddInCppSharedPtrFunction · 0.45
AddInCppUniquePtrFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected