GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::experimental::function(3) C++ Standard Libary std::experimental::function(3)

std::experimental::function - std::experimental::function


Defined in header <experimental/functional>
template< class > (library fundamentals TS)
class function; /* undefined */
template< class R, class... Args > (library fundamentals TS)
class function<R(Args...)>


std::experimental::function is a modified version of std::function with support for
type-erased allocators.

Member types


Type Definition
allocator_type std::experimental::erased_type

Member functions


constructor constructs a new std::experimental::function instance
(public member function)
operator= assigns a new target
(public member function)
swap swaps the contents
(public member function)
retrieves a pointer to the memory resource used by this object
get_memory_resource to allocate memory
(public member function)


std::experimental::swap(std::experimental::function) specializes the swap algorithm
(function template)
compares an
operator== std::experimental::function
operator!= with nullptr
(function template)


specializes the std::uses_allocator
std::uses_allocator<std::experimental::function> type trait
(class template specialization)

Members identical to std::function

Member types


Type Definition
result_type R
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 functions


destructor destroys a std::function instance
(public member function of std::function<R(Args...)>)
operator bool checks if a target is contained
(public member function of std::function<R(Args...)>)
operator() invokes the target
(public member function of std::function<R(Args...)>)


target_type obtains the typeid of the stored target
(public member function of std::function<R(Args...)>)
target obtains a pointer to the stored target
(public member function of std::function<R(Args...)>)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.