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

Method Add

tests/test_class_sh_basic.cpp:139–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137struct SharedPtrStash {
138 std::vector<std::shared_ptr<const atyp>> stash;
139 void Add(const std::shared_ptr<const atyp> &obj) { stash.push_back(obj); }
140};
141
142class LocalUnusualOpRef : UnusualOpRef {}; // To avoid clashing with `py::class_<UnusualOpRef>`.

Callers 1

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected