[PATCH] D146231: [ADT] Add `llvm::range_size` function for generic ranges

Jakub Kuderski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 16 13:02:20 PDT 2023


kuhar updated this revision to Diff 505908.
kuhar added a comment.

Use adl_size to simplify the implementation and reduce branching.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146231

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146231.505908.patch
Type: text/x-patch
Size: 7342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230316/09236e87/attachment.bin>


More information about the llvm-commits mailing list