| 6 | #include <iterator> |
| 7 | using namespace std; |
| 8 | int main() { |
| 9 | auto arr = array<int, 8> { |
| 10 | 4, 8, 1, 10, 0, 45, 12, 7 }; |
| 11 | stable_sort( |
| 12 | arr.begin(), arr.end(), |
| 13 | [](int a, int b) { return b < a; }); |
| 14 | copy( |
| 15 | arr.begin(), |
| 16 | arr.end(), |
| 17 | ostream_iterator<int>(cout, ", ")); |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected