[PATCH] D152891: [ADT] Add deduction guide for iterator_range

Balázs Benics via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 23:47:17 PDT 2023


steakhal added a comment.

I have also considered adding ADL lookup support part of this patch, but that's slightly more complicated if you want to keep the ubiquitously included iterator_range header "small", I cannot simply include STLExtras here to gain the `adl_begin()` and `adl_end()`.
I have considered to basically "duplicate" the adl_begin and adl_end code, but I'm still not sure.

To do that, I'd need the `type_traits` header for sure for the SFINAE, which again would bloat this header. It would look something like this that way: F27914971: adl-support.patch <https://reviews.llvm.org/F27914971>


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152891



More information about the llvm-commits mailing list