cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Implementation of std::invoke. More...
Classes | |
struct | is_invocable< F, Args > |
Trait that describes if a functor of type F is invocable. More... | |
Namespaces | |
cxxomfort | |
Namespace of the cxxomfort library. | |
cxxomfort::cxxostd | |
Backports made available by cxxomfort. | |
Functions | |
template<typename F , typename... Args> | |
dependent_type_t | invoke (F &&callable, Args &&... args) |
Invokes a callable. See also invoke_r() . More... | |
template<typename R , typename F , typename... Args> | |
R | invoke_r (F &&callable, Args &&... args) |
Invokes a callable and specifies a return type. See also invoke() . More... | |
Implementation of std::invoke.
This header defines:
The implementation for C++11-esque invoke from https://en.cppreference.com/mwiki/index.php?title=cpp/utility/functional/invoke&oldid=92023
The implementation for C++11-esque invoke_result from https://en.cppreference.com/mwiki/index.php?title=cpp/types/result_of&oldid=102232
struct cxxomfort::cxxostd::is_invocable |
Trait that describes if a functor of type F is invocable.