This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Clean up zip iterators. NFC.
ClosedPublic

Authored by kuhar on Mar 5 2023, 2:28 PM.

Details

Summary
  • Use inheriting constructors declarations to avoid introducing the Base typedef and duplicate constructor definitions. This should make things cleaner, especially since zip_common also exposes a Base typedef.
  • Drop unnecessary template parameters.
  • Avoid double negation in zip_shortest's operator== and rename the comparison function for better readability.

Diff Detail

Event Timeline

kuhar created this revision.Mar 5 2023, 2:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2023, 2:28 PM
Herald added a subscriber: hanchung. · View Herald Transcript
kuhar requested review of this revision.Mar 5 2023, 2:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2023, 2:28 PM
kuhar updated this revision to Diff 502476.Mar 5 2023, 2:28 PM

Remove unintentional include

zero9178 accepted this revision.Mar 5 2023, 2:48 PM

LGTM

This revision is now accepted and ready to land.Mar 5 2023, 2:48 PM
This revision was automatically updated to reflect the committed changes.