bulk::var::var
var(world& world); // (1)
var(world& world, T value); // (2)
- Constructs a variable and registers it with
world. RequiresTto be trivially constructable. - … In addition, set the initial value of the local image to
value.
Parameters
world- the world this variable belongs tovalue- initial value of the local image
Complexity and cost
- Cost -
lor free (backend dependent)