Skip to content

bulk::future

Defined in header <bulk/future.hpp>.

template <typename T>
class future; // (1)

template <typename T>
class future<T[]>; // (2)

bulk::future represents a value (1) or array (2) that will or has become known in the superstep after its creation.

Template parameters

  • T - the type of the value(s) stored in the future

Member functions

(constructor) constructs the future
(deconstructor) deconstructs the future
operator= assign a future
Value access
value returns the value of the future (1)
operator[] return an element of the array (2)
Hub access
world returns the hub to which the future belongs