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

Function AddInCppSharedPtr

tests/test_class_sh_trampoline_basic.cpp:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33int AddInCppRawPtr(const Abase *obj, int other_val) { return obj->Add(other_val) * 10 + 7; }
34
35int AddInCppSharedPtr(const std::shared_ptr<Abase> &obj, int other_val) {
36 return obj->Add(other_val) * 100 + 11;
37}
38
39int AddInCppUniquePtr(std::unique_ptr<Abase> obj, int other_val) {
40 return obj->Add(other_val) * 100 + 13;

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected