1 #ifndef RECOTOOL_MATCHBOOKKEEPER_CXX 2 #define RECOTOOL_MATCHBOOKKEEPER_CXX 21 _register.insert(std::make_pair(score,matched_indexes));
27 std::vector<std::vector<unsigned int> > res;
41 result.reserve((
unsigned int)(
_register.size()/2));
43 std::vector<bool> used_index;
49 bool valid_set =
true;
51 for(
auto const& index : (*riter).second) {
53 if(index >= used_index.size())
55 used_index.resize(index+1,
false);
57 else if(used_index.at(index)) valid_set =
false;
63 result.push_back((*riter).second);
65 for(
auto& index : (*riter).second)
67 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.