[libcxx-commits] [PATCH] D99855: [libcxx] makes `iterator_traits` C++20-aware

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Apr 19 09:08:43 PDT 2021


zoecarver added inline comments.


================
Comment at: libcxx/include/iterator:702-707
+  __has_member_reference<_Ip> &&
+  __has_member_iterator_category<_Ip> &&
+  requires {
+    typename _Ip::difference_type;
+    typename _Ip::value_type;
+  };
----------------
cjdb wrote:
> I know I wrote this, but it'd be better if we used nested requires expressions so the requirements can be congruently ordered with the wording.
Not sure I follow. Do you want me to make this two `requires` expressions, or do you want me to add `__has_member_{difference_type,value_type}`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99855



More information about the libcxx-commits mailing list