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

Function disjointsublists

tests/utils/lists.cpp:246–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244
245
246GeneratorWrapper<listpair> disjointsublists(GeneratorWrapper<int>&& gen, int sublen1, int sublen2) {
247
248 vector<int> list;
249 do { list.push_back(gen.get()); } while (gen.next());
250
251 return GeneratorWrapper<listpair>(
252 Catch::Detail::make_unique<DisjointSublistsGenerator>(
253 list, sublen1, sublen2));
254}
255
256
257

Callers 1

GENERATE_CTRLS_AND_TARGSFunction · 0.85

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected