_d_arrayassign_l

fnTarr _d_arrayassign_l(Tarr : T[], T)(return scope Tarr to, scope Tarr from) @trusted

Does array assignment (not construction) from another array of the same element type. Handles overlapping copies. Assumes the right hand side is an lvalue,

Used for static array assignment with non-POD element types:

struct S
{
   ~this() {} // destructor, so not Plain Old Data
}

void main()
{
 S[3] arr;
 S[3] lvalue;

 arr = lvalue;
 // Generates:
 // _d_arrayassign_l(arr[], lvalue[]), arr;
}

Parameters

todestination array
fromsource array

Returns

to