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

Method next

tests/utils/lists.cpp:164–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 bool next() override {
165
166 // offer next permutation of the current combination
167 if (std::next_permutation(sublist.begin(), sublist.end()))
168 return true;
169
170 // else generate the next combination
171 if (std::next_permutation(featured.begin(), featured.end())) {
172
173 prepareSublist();
174 return true;
175 }
176
177 // else indicate generator is exhausted
178 return false;
179 }
180};
181
182

Callers 4

getGeneratorElemsFunction · 0.45
sublistsFunction · 0.45
nextMethod · 0.45
disjointsublistsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected