Searched refs:inout_subset (Results 1 – 1 of 1) sorted by relevance
425 void next_subset(vector<size_t>& inout_subset, size_t set_size) in next_subset() argument427 if (is_last_subset(inout_subset, set_size)) { in next_subset()432 while (inout_subset[inout_subset.size() - i] == set_size - i) { in next_subset()434 assert(i <= inout_subset.size()); in next_subset()436 size_t first_index_to_change = inout_subset.size() - i; in next_subset()437 inout_subset[first_index_to_change]++; in next_subset()438 size_t p = inout_subset[first_index_to_change]; in next_subset()439 for (size_t j = first_index_to_change + 1; j < inout_subset.size(); j++) { in next_subset()440 inout_subset[j] = ++p; in next_subset()