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::ranges::invoke(3) C++ Standard Libary std::experimental::ranges::invoke(3)

std::experimental::ranges::invoke - std::experimental::ranges::invoke


Defined in header <experimental/ranges/functional>
template < class F, class... Args > (ranges TS)
std::result_of_t<F&&(Args&&...)> invoke(F&& f, Args&&... args);


Invoke the Callable object f with the parameters args, and return the result, as if
by return INVOKE(std::forward<F>(f), std::forward<Args>(args)...);, where INVOKE(f,
t1, t2, ..., tN) is defined as follows:


* if f is a pointer to member function of class T:


* If std::is_base_of<T, std::decay_t<decltype(t1)>>::value is true, then
INVOKE(f, t1, t2, ..., tN) is equivalent to (t1.*f)(t2, ..., tN)
* otherwise, INVOKE(f, t1, t2, ..., tN) is equivalent to ((*t1).*f)(t2,
..., tN).


* otherwise, if N == 1 and f is a pointer to data member of class T:


* If std::is_base_of<T, std::decay_t<decltype(t1)>>::value is true, then
INVOKE(f, t1) is equivalent to t1.*f
* otherwise, then INVOKE(f, t1) is equivalent to (*t1).*f


* otherwise, INVOKE(f, t1, t2, ..., tN) is equivalent to f(t1, t2, ..., tN) (that
is, f is a FunctionObject)


f - Callable object to be invoked
args - arguments to pass to f


invoke invokes any Callable object with given arguments
invoke_r and possibility to specify return type
(C++17) (since C++23)
(C++23) (function template)

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.