MCPcopy 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
54template <class Map>
55Map *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
63template <class NestMap>
64NestMap *times_hundred(int n) {

Callers

nothing calls this directly

Calls 1

E_ncClass · 0.85

Tested by

no test coverage detected