1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // <deque>
11
12 // Test nested types and default template args:
13
14 // template <class T, class Allocator = allocator<T> >
15 // class deque;
16
17 // iterator, const_iterator
18
19 #include <deque>
20 #include <iterator>
21 #include <cassert>
22
main()23 int main()
24 {
25 typedef std::deque<int> C;
26 C c;
27 C::iterator i;
28 i = c.begin();
29 C::const_iterator j;
30 j = c.cbegin();
31 assert(i == j);
32 }
33