![]() |
hpx::components::new_colocated — Create a new instance of the given Component type on the co-located with the specified object.
// In header: <hpx/runtime/components/new.hpp> template<typename Component, typename ArgN, ... > hpx::future< hpx::id_type > new_colocated(hpx::id_type const & id, Arg0 argN, ...);
This function creates a new instance of the given Component type on the specified locality the given object is currently located on 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. |