[llvm] [ADT] Add `llvm::conditionally_reverse()` iterator (PR #171040)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 7 10:47:16 PST 2025
================
@@ -40,6 +40,7 @@
#include <tuple>
#include <type_traits>
#include <utility>
+#include <variant>
----------------
MacDue wrote:
I've implemented it with `zip_equal` instead (which was my original approach anyway). This is slightly worse, since it will iterate in both directions, but it mostly seems fine: https://godbolt.org/z/MTPKn65bK
https://github.com/llvm/llvm-project/pull/171040
More information about the llvm-commits
mailing list