| 42 | }; |
| 43 | |
| 44 | std::vector<std::pair<std::string, std::vector<float>>> SortMapByValue(std::map<std::string, std::vector<float>> &map) { |
| 45 | std::vector<std::pair<std::string, std::vector<float>>> pair_vec(map.begin(), map.end()); |
| 46 | sort(pair_vec.begin(), pair_vec.end(), CmpByValue()); |
| 47 | return pair_vec; |
| 48 | } |
| 49 | |
| 50 | std::ostream &FormatRow(std::ostream &stream, int width) { |
| 51 | stream << std::right << std::setw(width); |
no test coverage detected