[llvm] [STLExtras] Introduce BinaryPredicateFunctor, [not_]equal_to (PR #175056)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 12:19:59 PST 2026


================
@@ -2157,6 +2157,30 @@ template <typename T> bool all_equal(std::initializer_list<T> Values) {
   return all_equal<std::initializer_list<T>>(std::move(Values));
 }
 
+template <typename ValT, typename RefT, typename BinaryPredicate>
+struct BinaryPredicateFunctor {
----------------
artagnon wrote:

In an earlier match-functor review, @nikic said that it would be better not to use lambda-capture, and implement a lightweight functor-struct.

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


More information about the llvm-commits mailing list