//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // reverse_iterator // template reverse_iterator // make_reverse_iterator(Iterator i); #include #include #include "test_iterators.h" #if _LIBCPP_STD_VER > 11 template void test(It i) { const std::reverse_iterator r = std::make_reverse_iterator(i); assert(r.base() == i); } int main() { const char* s = "1234567890"; random_access_iteratorb(s); random_access_iteratore(s+10); while ( b != e ) test ( b++ ); } #else int main () {} #endif