[PATCH] D145026: [ADT] Use `adl_begin`/`end` in `enumerate`

Jakub Kuderski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 20:11:41 PST 2023


kuhar created this revision.
kuhar added reviewers: dblaikie, zero9178, Mogball, antiagainst, kazu, beanz, zturner, mehdi_amini.
Herald added a subscriber: hanchung.
Herald added a project: All.
kuhar requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This allows `enumerate` to work with range types that expose custom
`begin`/`end` functions.

This is a cleanup in preparation for future changes in
https://reviews.llvm.org/D144503.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145026

Files:
  llvm/include/llvm/ADT/STLExtras.h
  llvm/unittests/ADT/STLExtrasTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145026.501366.patch
Type: text/x-patch
Size: 3155 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230301/17521260/attachment.bin>


More information about the llvm-commits mailing list