[libcxx-commits] [PATCH] D101396: [libcxx][ranges] Add `contiguous_iterator`.
Zoe Carver via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon May 10 13:16:59 PDT 2021
zoecarver added inline comments.
================
Comment at: libcxx/include/__memory/pointer_traits.h:201
template <class _Pointer>
- using __return_type = typename pointer_traits<_Pointer>::element_type*;
+ using __return_type = decltype( _VSTD::__to_address(declval<const _Pointer&>().operator->()));
----------------
I'm going to make this into a separate PR with test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101396/new/
https://reviews.llvm.org/D101396
More information about the libcxx-commits
mailing list