[ADT] Clean up zip iterators. NFC.
authorJakub Kuderski <kubak@google.com>
Mon, 6 Mar 2023 16:10:59 +0000 (11:10 -0500)
committerJakub Kuderski <kubak@google.com>
Mon, 6 Mar 2023 16:16:58 +0000 (11:16 -0500)
commite969c803818cf88fb586d58505e956fe02db8696
tree49778f37a7462f964883f615cee3a2b68ca11421
parent7b54a29c2e72e3e6bf7bb8cb5acfe254335584d7
[ADT] Clean up zip iterators. NFC.

*  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.

Reviewed By: zero9178

Differential Revision: https://reviews.llvm.org/D145332
llvm/include/llvm/ADT/STLExtras.h