1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // Test nested types and default template args:
13 // template <class T, class Allocator = allocator<T> >
16 // iterator, const_iterator
22 #include "test_macros.h"
23 #include "min_allocator.h"
28 typedef std::deque
<int> C
;
36 #if TEST_STD_VER >= 11
38 typedef std::deque
<int, min_allocator
<int>> C
;
49 std::deque
<int>::iterator ii1
{}, ii2
{};
50 std::deque
<int>::iterator ii4
= ii1
;
51 std::deque
<int>::const_iterator cii
{};
52 assert ( ii1
== ii2
);
53 assert ( ii1
== ii4
);
55 assert (!(ii1
!= ii2
));
57 assert ( (ii1
== cii
));
58 assert ( (cii
== ii1
));
59 assert (!(ii1
!= cii
));
60 assert (!(cii
!= ii1
));
61 assert (!(ii1
< cii
));
62 assert (!(cii
< ii1
));
63 assert ( (ii1
<= cii
));
64 assert ( (cii
<= ii1
));
65 assert (!(ii1
> cii
));
66 assert (!(cii
> ii1
));
67 assert ( (ii1
>= cii
));
68 assert ( (cii
>= ii1
));
69 assert (cii
- ii1
== 0);
70 assert (ii1
- cii
== 0);
73 // assert ( ii1 != c.cbegin());
74 // assert ( cii != c.begin());
75 // assert ( cii != c.cend());
76 // assert ( ii1 != c.end());