[ADT] Clarify `zip` behavior with iteratees of different lengths
authorJakub Kuderski <kubak@google.com>
Wed, 30 Nov 2022 00:50:15 +0000 (19:50 -0500)
committerJakub Kuderski <kubak@google.com>
Wed, 30 Nov 2022 00:50:16 +0000 (19:50 -0500)
commitaa7a3d4d3df23003ccb91cb49be97c37233cab5b
tree371ead180c4072f2ddbd96914fb0707492d00060
parent26e44d4aeada0cbbde09701c6b470f7eb313fd41
[ADT] Clarify `zip` behavior with iteratees of different lengths

Update the documentation comment and add a new test case.

Add an assertion in `zip_first` checking the iteratee length precondition.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D138858
llvm/include/llvm/ADT/STLExtras.h
llvm/unittests/ADT/IteratorTest.cpp