more
[ICEs.git] / 201605 / ice.ii
1 template < typename I >
2 inline
3 void reverse(I a, I b)
4 {
5 while (a != b) {
6 --b;
7 if (a == b)
8 break;
9 ++a;
10 }
11 }
12 int A[1000000];
13 void dosch()
14 {
15 reverse(A, A + 1000000);
16 }