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