![]() |
hpx::components::new_ — Create a new instance of the given Component type on the specified locality.
// In header: <hpx/runtime/components/new.hpp> template<typename Component, typename ArgN, ... > hpx::future< hpx::id_type > new_(hpx::id_type const & locality, Arg0 argN, ...);
This function creates a new instance of the given Component type on the specified locality and returns a future object for the global address which can be used to reference the new component instance.
Parameters: |
|
||||
Returns: |
The function returns an hpx::future object instance which can be used to retrieve the global address of the newly created component. |