bulk::var::var
var(world& world); // (1)
var(world& world, T value); // (2)
- Constructs a variable and registers it with
world
. RequiresT
to 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 -
l
or free (backend dependent)