• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 //===----------------------------------------------------------------------===//
3 //
4 //                     The LLVM Compiler Infrastructure
5 //
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10 //
11 // <map> feature macros
12 
13 /*  Constant                                    Value
14     __cpp_lib_allocator_traits_is_always_equal  201411L
15     __cpp_lib_erase_if                          201811L
16     __cpp_lib_generic_associative_lookup        201304L
17     __cpp_lib_map_try_emplace                   201411L
18     __cpp_lib_node_extract                      201606L
19     __cpp_lib_nonmember_container_access        201411L
20 
21 */
22 
23 #include <map>
24 #include <cassert>
25 #include "test_macros.h"
26 
main()27 int main()
28 {
29 //  ensure that the macros that are supposed to be defined in <map> are defined.
30 
31 #if TEST_STD_VER > 17
32 # if !defined(__cpp_lib_erase_if)
33   LIBCPP_STATIC_ASSERT(false, "__cpp_lib_erase_if is not defined");
34 # else
35 #  if __cpp_lib_erase_if < 201811L
36 #   error "__cpp_lib_erase_if has an invalid value"
37 #  endif
38 # endif
39 #endif
40 
41 /*
42 #if !defined(__cpp_lib_fooby)
43 # error "__cpp_lib_fooby is not defined"
44 #elif __cpp_lib_fooby < 201606L
45 # error "__cpp_lib_fooby has an invalid value"
46 #endif
47 */
48 }
49