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

Yanzuo Liu via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 11 08:22:45 PST 2026


zwuis wrote:

> Sorry that backporting is more involved than I thought. It is needed to write many code (compared with `bind_{first,last}`) or use C++20 features (lambda capture packs with initializers) although only considering perfect-forwarding bound arguments. Withdrawed.

Sorry that I didn't make it clear. I wanted to withdraw the idea of backporting.

---

Current implementation is ok to me if we apply the suggestion in https://github.com/llvm/llvm-project/pull/175056#discussion_r2674092082 and move them to "FunctionalExtras.h" or "STLFunctionalExtras.h".

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


More information about the llvm-commits mailing list