Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ pass_std_vector_int
Function
pass_std_vector_int
tests/test_stl.cpp:172–178 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
170
} // namespace PYBIND11_NAMESPACE
171
172
int pass_std_vector_int(const std::vector<int> &v) {
173
int zum = 100;
174
for (const int i : v) {
175
zum += 2 * i;
176
}
177
return zum;
178
}
179
180
TEST_SUBMODULE(stl, m) {
181
// test_vector
Callers
1
TEST_SUBMODULE
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected