MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / sublists

Function sublists

tests/utils/lists.cpp:183–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182
183GeneratorWrapper<vector<int>> sublists(GeneratorWrapper<int>&& gen, int sublen) {
184
185 vector<int> list;
186 do { list.push_back(gen.get()); } while (gen.next());
187
188 return GeneratorWrapper<vector<int>>(
189 Catch::Detail::make_unique<SublistGenerator>(
190 list, sublen));
191}
192
193
194

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected