[llvm] [STLExtras] Introduce bind_{first, last}, [not_]equal_to (PR #175056)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 9 06:10:54 PST 2026
================
@@ -177,4 +178,36 @@ struct from_range_t {
inline constexpr from_range_t from_range{};
} // namespace llvm
+//===----------------------------------------------------------------------===//
+// Features from C++26
+//===----------------------------------------------------------------------===//
+
+template <auto Fn, typename... BindArgsT>
+constexpr auto
+bind_front(BindArgsT &&...BindArgs) { // NOLINT(readability-identifier-naming)
+ using FnT = decltype(Fn);
----------------
kuhar wrote:
Why did you decide to implement the c++26 overload with const function instead of the c++20/c++23 variants with function passed through arguments?
https://github.com/llvm/llvm-project/pull/175056
More information about the llvm-commits
mailing list