This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Move drop_begin from iterator_range.h into STLExtras.
ClosedPublic

Authored by lhames on Nov 13 2019, 9:21 AM.

Details

Summary

drop_begin depends on adl_begin/adl_end, which are defined in STLExtras.h,
but we can't just #include STLExtras.h in iterator_range.h as that would
introduce a circular reference (STLExtras.h already depends on
iterator_range.h). The simplest solution is to move drop_begin into
STLExtras.h, which is a reasonable home for it anyway.

Diff Detail

Event Timeline

lhames created this revision.Nov 13 2019, 9:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 13 2019, 9:21 AM
dblaikie accepted this revision.Nov 13 2019, 9:57 AM

Sounds good - thanks!

This revision is now accepted and ready to land.Nov 13 2019, 9:57 AM
This revision was automatically updated to reflect the committed changes.