std::experimental::function
From cppreference.com
 
 
 < cpp | experimental 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Experimental 
 Filesystem library (filesystem TS)
 Library fundamentals (library fundamentals TS)
 Library fundamentals 2 (library fundamentals TS v2)
 Library fundamentals 3 (library fundamentals TS v3)
 Extensions for parallelism (parallelism TS)
 Extensions for parallelism 2 (parallelism TS v2)
 Extensions for concurrency (concurrency TS)
 Extensions for concurrency 2 (concurrency TS v2)
 Concepts (concepts TS)
 Ranges (ranges TS)
 Reflection (reflection TS)
 Mathematical special functions (special functions TR)
Polymorphic allocator library 
 
 Memory resource classes
 Global memory resources
 Type-erased allocator support for existing classes
function
Defined in header 
 
 
<experimental/functional> 
 template< class >
class function; /* undefined */
 
 (library fundamentals TS) 
class function; /* undefined */
template< class R, class... Args >
class function<R(Args...)>
 
 (library fundamentals TS) 
class function<R(Args...)>
std::experimental::function is a modified version of std::function  with support for type-erased allocators.
Contents
[edit] Member types
 Type
 Definition
allocator_type
 
std::pmr::polymorphic_allocator <>
(library fundamentals TS v3)[edit] Member functions
(removed in library fundamentals TS v3)
(public member function) [edit]
(library fundamentals TS v3)
(public member function) [edit]
[edit] Non-member functions
(removed in library fundamentals TS v3)
(function template) [edit]
[edit] Helper classes
(removed in library fundamentals TS v3)
(class template specialization) [edit]
Members identical to std::function
Member types
 Type
 Definition
result_type
 R
Member types removed in Library Fundamental TS v3
argument_type
 T if sizeof...(Args) == 1 and T is the first and only type in Args...
first_argument_type
 T1 if sizeof...(Args) == 2 and T1 is the first of the two types in Args...
second_argument_type
 T2 if sizeof...(Args) == 2 and T2 is the second of the two types in Args...
Member types argument_type, first_argument_type, and second_argument_type are removed, because the correponding member types of std::function  are removed in C++20.
Member functions
Target access
 
 obtains the typeid of the stored target 
(public member function of
(public member function of
std::function<R(Args...)>) [edit]