Implement P1209 - Adopt Consistent Container Erasure from Library Fundamentals 2 for C++20. Reviewed as https://reviews.llvm.org/D55532

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@349178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2018-12-14 18:49:35 +00:00
parent 7213ea7c13
commit f927635d87
39 changed files with 1717 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
/* Constant Value
__cpp_lib_allocator_traits_is_always_equal 201411L
__cpp_lib_erase_if 201811L
__cpp_lib_nonmember_container_access 201411L
*/
@@ -24,6 +25,16 @@ int main()
{
// ensure that the macros that are supposed to be defined in <deque> are defined.
#if TEST_STD_VER > 17
# if !defined(__cpp_lib_erase_if)
LIBCPP_STATIC_ASSERT(false, "__cpp_lib_erase_if is not defined");
# else
# if __cpp_lib_erase_if < 201811L
# error "__cpp_lib_erase_if has an invalid value"
# endif
# endif
#endif
/*
#if !defined(__cpp_lib_fooby)
# error "__cpp_lib_fooby is not defined"