| 9 | |
| 10 | template<typename T> |
| 11 | void PrintSorted(T c) // #A By copy to be able to sort it |
| 12 | { |
| 13 | std::sort(c.begin(), c.end()); |
| 14 | |
| 15 | for(const auto& e : c) { std::cout << e << ' '; } |
| 16 | |
| 17 | std::cout << '\n'; |
| 18 | } |
| 19 | |
| 20 | void sortedVector() |
| 21 | { |
no test coverage detected