| 1 | #include <iterator> |
| 2 | #include <algorithm> |
| 3 | #include <vector> |
| 4 | #ifndef _GLIBCXX_DEBUG |
| 5 | #include <debug/vector> |
| 6 | #endif |
| 7 | |
| 8 | struct S { }; |
| 9 | |
| 10 | int main() |
| 11 | { |
| 12 | S s[1]; |
| 13 | std::vector<S> v(1); |
| 14 | std::copy(s, s, v.rbegin()); |
| 15 | #if __cplusplus >= 201103L |
| 16 | std::copy(s, s, std::make_move_iterator(v.begin())); |
| 17 | std::copy(s, s, std::make_move_iterator(v.rbegin())); |
| 18 | #endif |
| 19 | |
| 20 | #ifndef _GLIBCXX_DEBUG |
| 21 | __gnu_debug::vector<S> dv(1); |
| 22 | std::copy(s, s, dv.rbegin()); |
| 23 | #if __cplusplus >= 201103L |
| 24 | std::copy(s, s, std::make_move_iterator(dv.begin())); |
| 25 | std::copy(s, s, std::make_move_iterator(dv.rbegin())); |
| 26 | #endif |
| 27 | #endif |
| 28 | } |
| 29 |