mirror of https://github.com/llvm-mirror/libcxx
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
734 B
C++
33 lines
734 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// <deque>
|
|
|
|
// Test nested types and default template args:
|
|
|
|
// template <class T, class Allocator = allocator<T> >
|
|
// class deque;
|
|
|
|
// iterator, const_iterator
|
|
|
|
#include <deque>
|
|
#include <iterator>
|
|
#include <cassert>
|
|
|
|
int main()
|
|
{
|
|
typedef std::deque<int> C;
|
|
C c;
|
|
C::iterator i;
|
|
i = c.begin();
|
|
C::const_iterator j;
|
|
j = c.cbegin();
|
|
assert(i == j);
|
|
}
|