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 // explicit move_iterator(Iter i);
21 #include "test_macros.h"
22 #include "test_iterators.h"
28 std::move_iterator<It> r(i);
29 assert(r.base() == i);
35 test(input_iterator<char*>(s));
36 test(forward_iterator<char*>(s));
37 test(bidirectional_iterator<char*>(s));
38 test(random_access_iterator<char*>(s));
43 constexpr const char *p = "123456789";
44 constexpr std::move_iterator<const char *> it(p);
45 static_assert(it.base() == p);