| 4 | #include <algorithm> |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | int a[] = {4, 6, -3, 9, 10}; |
| 9 | std::cout << "Array backwards: "; |
| 10 | std::copy(std::rbegin(a), std::rend(a), std::ostream_iterator<int>(std::cout, " ")); |
| 11 | |
| 12 | std::cout << "\nVector backwards: "; |
| 13 | std::vector<int> v = {4, 6, -3, 9, 10}; |
| 14 | std::copy(std::rbegin(v), std::rend(v), std::ostream_iterator<int>(std::cout, " ")); |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected