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 // <set> 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_node_extract 201606L
18 __cpp_lib_nonmember_container_access 201411L
19
20 */
21
22 #include <set>
23 #include <cassert>
24 #include "test_macros.h"
25
main()26 int main()
27 {
28 // ensure that the macros that are supposed to be defined in <set> are defined.
29
30 #if TEST_STD_VER > 17
31 # if !defined(__cpp_lib_erase_if)
32 LIBCPP_STATIC_ASSERT(false, "__cpp_lib_erase_if is not defined");
33 # else
34 # if __cpp_lib_erase_if < 201811L
35 # error "__cpp_lib_erase_if has an invalid value"
36 # endif
37 # endif
38 #endif
39
40 /*
41 #if !defined(__cpp_lib_fooby)
42 # error "__cpp_lib_fooby is not defined"
43 #elif __cpp_lib_fooby < 201606L
44 # error "__cpp_lib_fooby has an invalid value"
45 #endif
46 */
47 }
48