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

Function times_hundred

tests/test_stl_binders.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template <class NestMap>
64NestMap *times_hundred(int n) {
65 auto *m = new NestMap();
66 for (int i = 1; i <= n; i++) {
67 for (int j = 1; j <= n; j++) {
68 (*m)[i].emplace(j * 10, E_nc(100 * j));
69 }
70 }
71 return m;
72}
73
74/*
75 * Recursive data structures as test for issue #4623

Callers

nothing calls this directly

Calls 1

E_ncClass · 0.85

Tested by

no test coverage detected