[libcxx-commits] [libcxx] [libc++] Implement `bind_back` (PR #81055)

Jakub Mazurkiewicz via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 14 06:34:14 PDT 2024


================
@@ -0,0 +1,362 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
+
+// <functional>
+
+// template<class F, class... Args>
+//   constexpr unspecified bind_back(F&& f, Args&&... args);
+
+#include <functional>
+
+#include <cassert>
+#include <concepts>
+#include <tuple>
+#include <utility>
+
+#include "callable_types.h"
+#include "types.h"
+
+constexpr void test_basic_bindings() {
----------------
JMazurkiewicz wrote:

Done:
* `bind_back`: https://github.com/llvm/llvm-project/pull/81055/commits/730b4e72184ce9a1914300b86e8748ab960c5122
* `bind_front`: https://github.com/llvm/llvm-project/pull/81055/commits/88013f8f222dfdd111b950d5c4496616e03f3aa4

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


More information about the libcxx-commits mailing list