llvm-project/libcxx/test/std/utilities/memory/default.allocator
Louis Dionne 87784cc6fb [libc++] Undeprecate the std::allocator<void> specialization
While the std::allocator<void> specialization was deprecated by
https://wg21.link/p0174#2.2, the *use* of std::allocator<void> by users
was not. The intent was that std::allocator<void> could still be used
in C++17 and C++20, but starting with C++20 (with the removal of the
specialization), std::allocator<void> would use the primary template.
That intent was called out in wg21.link/p0619r4#3.9.

As a result of this patch, _LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS
will also not control whether the explicit specialization is provided or
not. It shouldn't matter, since in C++20, one can simply use the primary
template.

Fixes http://llvm.org/PR50299

Differential Revision: https://reviews.llvm.org/D104323
2021-06-16 09:54:29 -04:00
..
allocator.globals [libc++] Implement C++20's P0784 (More constexpr containers) 2020-09-22 11:20:33 -04:00
allocator.members [libc++] Mark a few more tests as unsupported on gcc-8/9. 2020-11-26 12:40:50 +01:00
PR50299.compile.pass.cpp [libc++] Undeprecate the std::allocator<void> specialization 2021-06-16 09:54:29 -04:00
allocator.ctor.pass.cpp [libc++] Undeprecate the std::allocator<void> specialization 2021-06-16 09:54:29 -04:00
allocator.dtor.pass.cpp [libc++] Undeprecate the std::allocator<void> specialization 2021-06-16 09:54:29 -04:00
allocator_pointers.pass.cpp [libc++] Undeprecate the std::allocator<void> specialization 2021-06-16 09:54:29 -04:00
allocator_types.deprecated_in_cxx17.verify.cpp [libc++] Undeprecate the std::allocator<void> specialization 2021-06-16 09:54:29 -04:00
allocator_types.pass.cpp [libc++] Undeprecate the std::allocator<void> specialization 2021-06-16 09:54:29 -04:00
allocator_types.removed_in_cxx20.verify.cpp [libc++] Undeprecate the std::allocator<void> specialization 2021-06-16 09:54:29 -04:00
allocator_types.void.compile.pass.cpp [libc++] Undeprecate the std::allocator<void> specialization 2021-06-16 09:54:29 -04:00