Output all the elements in the subset
| 109 | |
| 110 | // Output all the elements in the subset |
| 111 | void BinarySet::Output(std::vector<int32_t>& out) const { |
| 112 | out.clear(); |
| 113 | for (int32_t i = 0; i < size_of_set_; i++) { |
| 114 | if (CheckExistence(i)) { out.emplace_back(i); } |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | // Output all the elements in the subset |
| 119 | void BinarySet::QuickOutput(std::vector<int32_t>& out) const { |