#3788·STL

P0792R14 `function_ref`: A Type-Erased Callable Reference

Author: StephanTLavavejCreated Jun 20, 2023Updated Sep 8, 2026
Labelscxx26

WG21-P0792R14 function_ref: A Type-Erased Callable Reference WG21-P3774R1 Rename nontype_t To constant_arg_t WG21-P3948R1 Use constant_wrapper In function_ref WG21-P3961R1 Less Double Indirection In function_ref LWG-4256 Incorrect constraints for function_ref constructors from nontype_t LWG-4425 CTAD function_ref of data member pointer should produce noexcept signature

Feature-test macro:

cpp
#define __cpp_lib_function_ref 202604L

Note: We are not yet accepting PRs for C++26 features.