[libcxx-commits] [PATCH] D137476: [libc++] Add utilites for instantiating functions with multiple types

Konstantin Varlamov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 2 15:24:48 PST 2022


var-const added inline comments.


================
Comment at: libcxx/test/support/test_iterators.h:1307
+using bidirectional_iterator_list =
+    concatenate_t<random_access_iterator_list<Ptr>, type_list<bidirectional_iterator<Ptr>>>;
+
----------------
philnik wrote:
> var-const wrote:
> > Question: why does `bidirectional_iterator_list` include random access iterators? From the name, I would expect it to be _at most_ bidirectional.
> I mean it the other way around, as-in "everything that is a bidirectional_iterator", like we need for the algorithm tests - bidirectional and everything better.
Ah, makes sense. Thanks for explaining.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137476



More information about the libcxx-commits mailing list