[libcxx-commits] [libcxx] [libc++] Implement `std::function_ref` (PR #186692)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 19 11:18:44 PDT 2026


================
@@ -0,0 +1,129 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++26
----------------
ldionne wrote:

Needs a synopsis.

Also, perhaps it's sufficient to `static_assert` that `is_trivially_move_constructible`? I might do that and keep a basic runtime test that just ensures the thing actually runs, and call it a day.

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


More information about the libcxx-commits mailing list