[all-commits] [llvm/llvm-project] aa7a3d: [ADT] Clarify `zip` behavior with iteratees of dif...

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Tue Nov 29 16:55:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa7a3d4d3df23003ccb91cb49be97c37233cab5b
      https://github.com/llvm/llvm-project/commit/aa7a3d4d3df23003ccb91cb49be97c37233cab5b
  Author: Jakub Kuderski <kubak at google.com>
  Date:   2022-11-29 (Tue, 29 Nov 2022)

  Changed paths:
    M llvm/include/llvm/ADT/STLExtras.h
    M llvm/unittests/ADT/IteratorTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list