| 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 |
no outgoing calls
no test coverage detected