function.h
constexpr function_ref() noexcept=default
Definition: function.h:44
shared_function< std::decay_t< F > > make_shared_function(F &&f)
Definition: function.h:39
constexpr function_ref< R(Args...)> & operator=(F &&f) noexcept
Definition: function.h:85
R operator()(Args... args) const
Call the stored callable with the given arguments.
Definition: function.h:103
constexpr void swap(function_ref< R(Args...)> &lhs, function_ref< R(Args...)> &rhs) noexcept
Swaps the referred callables of lhs and rhs.
Definition: function.h:120
constexpr function_ref< R(Args...)> & operator=(const function_ref< R(Args...)> &rhs) noexcept=default
Makes *this refer to the same callable as rhs.
constexpr void swap(function_ref< R(Args...)> &rhs) noexcept
Swaps the referred callables of *this and rhs.
Definition: function.h:97
auto invoke(Function &&fn, Args &&... args) -> typename std::enable_if< !or_reduce< false, madness::is_future< std::decay_t< Args >>::value... >::value, decltype(fn(args...))>::type
Definition: meta.h:52
Definition: array_impl.cpp:28
bool operator==(const function_ref &other) const
Definition: function.h:111