1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
14 // template <RandomAccessIterator Iter1, RandomAccessIterator Iter2>
15 // requires HasMinus<Iter1, Iter2>
17 // operator-(const move_iterator<Iter1>& x, const move_iterator<Iter2>& y)
18 // -> decltype(x.base() - y.base());
23 #include "test_iterators.h"
27 test(It l, It r, typename std::iterator_traits<It>::difference_type x)
29 const std::move_iterator<It> r1(l);
30 const std::move_iterator<It> r2(r);
36 char s[] = "1234567890";
37 test(random_access_iterator<char*>(s+5), random_access_iterator<char*>(s), 5);