[libcxx-commits] [PATCH] D115607: [libc++] [ranges] Improve ranges::{begin, end, cbegin, cend, data, size, ssize}

Joe Loser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Dec 12 19:11:36 PST 2021


jloser added inline comments.


================
Comment at: libcxx/include/__ranges/data.h:58
+      noexcept(noexcept(_VSTD::to_address(ranges::begin(__t))))
+      -> decltype(      _VSTD::to_address(ranges::begin(__t)))
+      requires contiguous_iterator<decltype(ranges::begin(__t))>
----------------
Is it safe to use `to_address` here in trailing return type SFINAE? Remember `to_address` is **not** SFINAE-friendly as we've talked about in other PRs.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115607/new/

https://reviews.llvm.org/D115607



More information about the libcxx-commits mailing list