cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
Classes | Namespaces | Functions
17-invoke.hpp File Reference

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>
invoke_r (F &&callable, Args &&... args)
 Invokes a callable and specifies a return type. See also invoke() . More...
 

Detailed Description

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


Class Documentation

◆ cxxomfort::cxxostd::is_invocable

struct cxxomfort::cxxostd::is_invocable

template<typename F, typename... Args>
struct cxxomfort::cxxostd::is_invocable< F, Args >

Trait that describes if a functor of type F is invocable.