MCPcopy 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
172int 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
180TEST_SUBMODULE(stl, m) {
181 // test_vector

Callers 1

TEST_SUBMODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected