Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ times_ten
Function
times_ten
tests/test_stl_binders.cpp:55–61 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
53
54
template <class Map>
55
Map *times_ten(int n) {
56
auto *m = new Map();
57
for (int i = 1; i <= n; i++) {
58
m->emplace(i, E_nc(10 * i));
59
}
60
return m;
61
}
62
63
template <class NestMap>
64
NestMap *times_hundred(int n) {
Callers
nothing calls this directly
Calls
1
E_nc
Class · 0.85
Tested by
no test coverage detected