This is an archive of the discontinued LLVM Phabricator instance.

Add ADL support to range based <algorithm> extensions
AbandonedPublic

Authored by stephan.dollberg on Nov 8 2017, 12:12 AM.

Details

Summary

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.

Event Timeline

Added llvm-commits as subscriber

chandlerc edited edge metadata.Nov 13 2017, 4:53 PM

Rather than adding llvm-commits to an old revision, please abandon the revision and create a fresh one with the patch and llvm-commits at the start. That way email gets sent to the list with the full description of the patch. Thanks.

stephan.dollberg abandoned this revision.Nov 13 2017, 11:59 PM

closing as per Chandler's comment. Will reopen.