xref: /llvm-project/libcxx/test/std/containers/associative/map/map.cons/default_recursive.compile.pass.cpp (revision df9167bfb3040bee492fd6bf64b97175f105da50)
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // <map>
10 
11 // class map
12 
13 // map();
14 
15 #include <map>
16 
17 #include "test_macros.h"
18 
19 struct X {
20   std::map<int, X> m;
21   std::map<int, X>::iterator i;
22   std::map<int, X>::const_iterator ci;
23 #if TEST_STD_VER <= 17
24   // These reverse_iterator specializations require X to be complete in C++20.
25   std::map<int, X>::reverse_iterator ri;
26   std::map<int, X>::const_reverse_iterator cri;
27 #endif // TEST_STD_VER <= 17
28 };
29