| Technical Specification | ||||
| 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) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Convenience aliases for containers usingpolymorphic_allocator | ||||
| 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) | |
template<class R,class...Args> class function<R(Args...)> | (library fundamentals TS) | |
std::experimental::function is a modified version ofstd::function with support for type-erased allocators.
Contents |
| Type | Definition | ||||
allocator_type |
|
constructs a newstd::experimental::function instance(public member function)[edit] | |
| assigns a new target (public member function)[edit] | |
| swaps the contents (public member function)[edit] | |
(removed in library fundamentals TS v3) | retrieves a pointer to the memory resource used by this object to allocate memory (public member function)[edit] |
(library fundamentals TS v3) | retrieves a type-erasedstd::pmr::polymorphic_allocator used by this object to allocate memory (public member function)[edit] |
specializes theswap algorithm(function template)[edit] | |
(removed in library fundamentals TS v3) | compares anstd::experimental::function withnullptr (function template)[edit] |
(removed in library fundamentals TS v3) | specializes thestd::uses_allocator type trait (class template specialization)[edit] |
| Type | Definition |
result_type | R |
Member types removed in Library Fundamental TS v3 | |
argument_type | T ifsizeof...(Args)==1 andT is the first and only type inArgs... |
first_argument_type | T1 ifsizeof...(Args)==2 andT1 is the first of the two types inArgs... |
second_argument_type | T2 ifsizeof...(Args)==2 andT2 is the second of the two types inArgs... |
Member types | (library fundamentals TS v3) |
destroys astd::function instance(public member function of std::function<R(Args...)>)[edit] | |
| checks if a target is contained (public member function of std::function<R(Args...)>)[edit] | |
| invokes the target (public member function of std::function<R(Args...)>)[edit] | |
Target access | |
| obtains thetypeid of the stored target (public member function of std::function<R(Args...)>)[edit] | |
| obtains a pointer to the stored target (public member function of std::function<R(Args...)>)[edit] | |