hpx::function
hpx::function#
Defined in header hpx/functional.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
Defines
-
HPX_UTIL_REGISTER_FUNCTION_DECLARATION(Sig, F, Name)#
-
HPX_UTIL_REGISTER_FUNCTION(Sig, F, Name)#
-
namespace hpx
Top level namespace.
-
template<typename Sig, bool Serializable = false>
class function# - #include <function.hpp>
Class template hpx::function is a general-purpose polymorphic function wrapper. Instances of hpx::function can store, copy, and invoke any CopyConstructible Callable target — functions, lambda expressions, bind expressions, or other function objects, as well as pointers to member functions and pointers to data members. The stored callable object is called the target of hpx::function. If an hpx::function contains no target, it is called empty. Invoking the target of an empty hpx::function results in hpx::error::bad_function_call exception being thrown. hpx::function satisfies the requirements of CopyConstructible and CopyAssignable.
-
template<typename R, typename ...Ts, bool Serializable>
class function<R(Ts...), Serializable> : public util::detail::basic_function<R(Ts...), true, Serializable># -
Public Functions
-
~function() = default#
Private Types
-
using base_type = util::detail::basic_function<R(Ts...), true, Serializable>#
-
~function() = default#
-
namespace distributed#
-
namespace util
-
template<typename Sig, bool Serializable = false>