llvm-project/libcxx/test/std/utilities/memory
Arthur O'Dwyer 85d4e29fd8 [libc++] Fix __wrap_iter to be a proper contiguous iterator.
Instead of overloading `__to_address`, let's specialize `pointer_traits`.
Function overloads need to be in scope at the point where they're called,
whereas template specializations do not. (User code can provide pointer_traits
specializations to be used by already-included library code, so obviously
`__wrap_iter` can do the same.)

`pointer_traits<__wrap_iter<It>>` cannot provide `pointer_to`, because
you generally cannot create a `__wrap_iter` without also knowing the
identity of the container into which you're trying to create an iterator.
I believe this is OK; contiguous iterators are required to provide
`to_address` but *not* necessarily `pointer_to`.

Differential Revision: https://reviews.llvm.org/D110198
2021-09-22 18:51:46 -04:00
..
allocator.tag [libc++] Remove Lit annotations for unsupported GCC versions from the test suite 2021-08-12 13:30:47 -04:00
allocator.traits [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
allocator.uses [libc++] Remove useless nothing_to_do.pass.cpp tests 2020-04-03 13:48:34 -04:00
c.malloc
default.allocator [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
pointer.conversion [libc++] Fix __wrap_iter to be a proper contiguous iterator. 2021-09-22 18:51:46 -04:00
pointer.traits [libc++] Fix __wrap_iter to be a proper contiguous iterator. 2021-09-22 18:51:46 -04:00
ptr.align Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00
specialized.algorithms [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
storage.iterator [libc++] Update all the pre-defined iterator types for C++20 2021-05-31 11:59:40 -04:00
temporary.buffer [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
unique.ptr [libc++] Remove Lit annotations for unsupported GCC versions from the test suite 2021-08-12 13:30:47 -04:00
util.dynamic.safety [libc++] Disentangle std::pointer_safety 2021-05-03 14:33:49 -04:00
util.smartptr [libc++] Disallow volatile types in std::allocator 2021-09-22 11:47:38 -04:00