Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ add
Method
add
tests/test_smart_ptr.cpp:322–322 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
320
321
struct ElementList {
322
void add(const std::shared_ptr<ElementBase> &e) { l.push_back(e); }
323
std::vector<std::shared_ptr<ElementBase>> l;
324
};
325
Callers
1
test_shared_ptr_gc
Function · 0.95
Calls
1
push_back
Method · 0.45
Tested by
no test coverage detected