[llvm] [STLExtras] Introduce bind_{first, last}, [not_]equal_to (PR #175056)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 14:17:48 PST 2026


================
@@ -1055,6 +1055,28 @@ TEST(STLExtrasTest, to_address) {
   EXPECT_EQ(V1, llvm::to_address(V3));
 }
 
+TEST(STLExtrasTest, EqualToNotEqualTo) {
+  std::vector<int> V;
+  EXPECT_TRUE(all_of(V, equal_to(1)));
----------------
kuhar wrote:

Can we test for temporaries? For example, you can store the lambda in a local variable instead of constructing it and immediately using in the same expression.

https://github.com/llvm/llvm-project/pull/175056


More information about the llvm-commits mailing list