blob: 720e1e3eab0e87a24298529d09b413b1bcb7e104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <iterator>
// reverse_iterator
// explicit reverse_iterator(Iter x);
// test explicit
#include <iterator>
template <class It>
void
test(It i)
{
std::reverse_iterator<It> r = i;
}
int main()
{
const char s[] = "123";
test(s);
}
|