17 _register.insert(std::make_pair(score, matched_indexes));
22 std::vector<std::vector<unsigned int>> res;
35 result.reserve((
unsigned int)(
_register.size() / 2));
37 std::vector<bool> used_index;
41 bool valid_set =
true;
43 for (
auto const& index : (*riter).second) {
45 if (index >= used_index.size())
47 used_index.resize(index + 1,
false);
49 else if (used_index.at(index))
55 result.push_back((*riter).second);
57 for (
auto& index : (*riter).second)
59 used_index.at(index) =
true;
Class def header for a class CMatchBookKeeper.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.