[PATCH] D40006: Add ADL support to range based <algorithm> extensions

Stephan Dollberg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 00:01:25 PST 2017


stephan.dollberg created this revision.

This adds support for ADL in the range based <algorithm> extensions
(llvm::for_each etc.).

Also adds the helper functions llvm::adl::begin and llvm::adl::end which wrap
std::begin and std::end with ADL support.

Saw this was missing from a recent llvm weekly post about adding llvm::for_each
and thought I might add it.


https://reviews.llvm.org/D40006

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40006.122786.patch
Type: text/x-patch
Size: 8748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171114/b4c642f0/attachment.bin>


More information about the llvm-commits mailing list