[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:45 PDT 2026
================
@@ -0,0 +1,359 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+
+// template<auto f, class T>
+// constexpr function_ref(constant_wrapper<f>, cv T* obj) noexcept;
----------------
ldionne wrote:
This says `cv T* obj`, but I don't think I saw any test where we passed an actual cv-qualified type to the constructor. Can you check and adjust if needed?
Also probably applies to `constant_wrapper_ref.pass.cpp`.
https://github.com/llvm/llvm-project/pull/186692
More information about the libcxx-commits
mailing list