Compare commits

..

1 Commits

Author SHA1 Message Date
8d50ac79d0 Minor optimization + comments 2020-12-01 22:19:58 +01:00

View File

@ -104,6 +104,7 @@ public:
std::make_heap(heap.begin(), heap.end(), sort_cells); std::make_heap(heap.begin(), heap.end(), sort_cells);
} }
// TODO: Turn this into a member of Cell as opterator<
static bool sort_cells(const Cell& a, const Cell& b) { static bool sort_cells(const Cell& a, const Cell& b) {
return a.possible_values.size() < b.possible_values.size(); return a.possible_values.size() < b.possible_values.size();
} }