Update the documentation comment and add a new test case.
Add an assertion in zip_first checking the iteratee length precondition.
Paths
| Differential D138858
[ADT] Clarify `zip` behavior with iteratees of different lengths ClosedPublic Authored by kuhar on Nov 28 2022, 1:14 PM.
Details Summary Update the documentation comment and add a new test case. Add an assertion in zip_first checking the iteratee length precondition.
Diff Detail
Event Timeline
kuhar retitled this revision from [ADT] Clarify `zip` behavior with iteratees of different lengths. NFC. to [ADT] Clarify `zip` behavior with iteratees of different lengths.Nov 28 2022, 7:27 PM kuhar marked an inline comment as done. This revision is now accepted and ready to land.Nov 29 2022, 12:02 AM This revision was landed with ongoing or failed builds.Nov 29 2022, 4:55 PM Closed by commit rGaa7a3d4d3df2: [ADT] Clarify `zip` behavior with iteratees of different lengths (authored by kuhar). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 478757 llvm/include/llvm/ADT/STLExtras.h
llvm/unittests/ADT/IteratorTest.cpp
|
Worth mentioning what values are used to fill in if the second iteratee isn't long enough?